Tiago Ramos
Posts: 0
Joined: Thu Feb 27, 2014 3:00 pm

Issue with Update Device REST service and deviceID

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Issue with Update Device REST service and deviceID

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.

Amanda
Posts: 0
Joined: Fri Jan 17, 2014 5:33 am

Issue with Update Device REST service and deviceID

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Issue with Update Device REST service and deviceID

Thank you for sharing!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Issue with Update Device REST service and deviceID

Hello!

This bug should be fixed now.

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Issue with Update Device REST service and deviceID

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Issue with Update Device REST service and deviceID

Hi Andrew.

Please provide us screen shot of your service tabs.

And describe what you have tryed so far?

Regards

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Issue with Update Device REST service and deviceID

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Issue with Update Device REST service and deviceID

Andy.

We will wait for your update.

Thanks

Oli Blub
Posts: 0
Joined: Mon Apr 28, 2014 10:59 am

Issue with Update Device REST service and deviceID

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!

Return to “Issues”