Page 1 of 1

Arguments not being passed to Server code

Posted: Tue Jan 13, 2015 1:42 pm
by Shawn

I'm calling a Server code service for password recovery and pass the username and useremail

It works fine when I test the server code directly
When testing the service from the IDE it doesnt replace arguments with actual values

Here are the screenshots
Server code works fine ...

Image

Testing server code from IDE gives an Error 'The request sent by the client was syntactically incorrect ()'

Image

Details of Server code ...

Image


Arguments not being passed to Server code

Posted: Wed Jan 14, 2015 4:14 am
by Yurii Orishchuk

Hi Shawn,

Please try to move your request parameters to "query string" request parameter(You need delete them from URL).

Details: http://prntscr.com/5s8xcj/direct

Regards.


Arguments not being passed to Server code

Posted: Wed Jan 14, 2015 2:31 pm
by Shawn

hi yurii how does one delete from the url ? its non editable and is shown when we try to test the service ?

Inside the Service settings this is the url it automatically created ...

https://api.appery.io/rest/1/code/33b...

that is edtable. Do you want me to change that ?


Arguments not being passed to Server code

Posted: Thu Jan 15, 2015 2:28 am
by Yurii Orishchuk

Hi Shawn,

You need to open service "Settings" tab to edit "URL" parameter.

See details: http://prntscr.com/5smgl8/direct

Regards


Arguments not being passed to Server code

Posted: Thu Jan 15, 2015 10:20 am
by Shawn

still getting the error 'The request sent by the client was syntactically incorrect ()'

here are all the settings

Image

Image

Image

Image

Image

Image


Arguments not being passed to Server code

Posted: Fri Jan 16, 2015 7:41 pm
by Ihor Didevych

Hello,

1) You should change from data to json request content-type on settings tab
2) in request tab- headers please remove Contet-type : application\octet-stream


Arguments not being passed to Server code

Posted: Fri Jan 16, 2015 10:33 pm
by Shawn

Thats great Ihor. It works now. Thanks