Page 1 of 2

Issue with Update Device REST service and deviceID

Posted: Fri Mar 14, 2014 1:12 pm
by Tiago Ramos

I'm trying to make use of the Update Device service.
On the device I'm testing with, the deviceID is "354907052063037;4131f05ae72a9b2e"
When I try to test the service with that ID, I get an error response "Device id: 354907052063037 not found". Apparently the semicolon in the deviceID is messing up with the api call.

Here's an image of the test:
Image


Issue with Update Device REST service and deviceID

Posted: Fri Mar 14, 2014 1:41 pm
by Maryna Brodina

Hello!
It's a known bug, we'll fix it. Sorry for inconvenience. Please note it doesn't work on Test tab only, but works on preview in browser.


Issue with Update Device REST service and deviceID

Posted: Wed Mar 19, 2014 1:42 pm
by Amanda

Since I struggled with this for a few hours myself, I wanted to add for future readers: if the channels parameter is set up as a string as shown in the documentation, the test will work when setting up the service, but the actual request from the phone will fail with a "bad request". channels needs to be an object.


Issue with Update Device REST service and deviceID

Posted: Wed Mar 19, 2014 3:50 pm
by Maryna Brodina

Thank you for sharing!


Issue with Update Device REST service and deviceID

Posted: Mon Apr 14, 2014 12:54 pm
by Maryna Brodina

Hello!

This bug should be fixed now.


Issue with Update Device REST service and deviceID

Posted: Tue May 06, 2014 7:45 pm
by Andrew Peacock

Hi Maryna,

I've hit this problem in the last few days. I thought it was something I was doing, but obviously not. I've got the exact issue that Tiago encountered.

How can I resolve this?

Regards,
Andy


Issue with Update Device REST service and deviceID

Posted: Wed May 07, 2014 12:22 am
by Yurii Orishchuk

Hi Andrew.

Please provide us screen shot of your service tabs.

And describe what you have tryed so far?

Regards


Issue with Update Device REST service and deviceID

Posted: Wed May 07, 2014 10:50 am
by Andrew Peacock

Will do - I'm not at that PC now so I can't do now, but will get back later. But essentially it's identical to above. The device ID provided by javascript includes a semi-colon; if I pass that into the device update call, then I get that same error message back (device ID not found). If I urlencode the device ID, the update works OK.

Andy


Issue with Update Device REST service and deviceID

Posted: Wed May 07, 2014 11:34 pm
by Yurii Orishchuk

Andy.

We will wait for your update.

Thanks


Issue with Update Device REST service and deviceID

Posted: Sun May 11, 2014 8:58 am
by Oli Blub

Hello,

i had the same problem and put the following code to the input field of the DeviceID:
return encodeURIComponent(value);
Finally it worked after deploying the App :)

Thanks Andy!