Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

put service

Sure,

You use incorrect URL. If you want to put order to DB you need to use one of this URL:
pre
{database_url}/collections/test/{object_id}
/pre
or
pre
{database_url}/collections/vegipizza/{object_id}
/pre
In the current url you use "User" collection I'm not sure if it exist.

Could you clarify what does this service should do?

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

put service

No Igor,
this is in the user database, I have this service in another app, and it works

Image

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

put service

Sorry,
I meant a simular service in another app

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

put service

I've found the error there is a missed bracket in the URL
you should use:
pre
{database_url}/users/{object_id}
/pre
instead of
pre
{database_url/users/{object_id}
/pre
Also you should update your session token to test it.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

put service

Cheers Igor,
made the changes, cleared localstorage, reset start screen to login, logged in, saves token and id to localstorage, checked, all good. Click order button on vegi pizza screen, array saved to localstorage, click checkout to run currentorderService ,but got new error, here is s/s

Image

Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

put service

Hi Michael, have you tested the service? Can you show your Test tab?

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

put service

lllya,
it fails in the test tab as Igor, suggested, here is the s/s of test tab, without array and with

Image

Image

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

put service

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

put service

Hi Michael,

For test tab - get anew authorization code via star_login_service and paste it into request parameter currentorderService for the tab "Test".

Please note, if you specify it in service request parameters in Request tab then it will remain for all subsequent runs of the service.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

put service

Hi Katya,
I registered a new user and copied the new object id and session token, test was successful, 9dont understand what was wrong with id and token from previous user)

in tester still an error, here are the s/s

Image

Image

Return to “Issues”