Shawn
Posts: 0
Joined: Sat Jun 21, 2014 11:13 pm

Arguments not being passed to Server code

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

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

Arguments not being passed to Server code

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.

Shawn
Posts: 0
Joined: Sat Jun 21, 2014 11:13 pm

Arguments not being passed to Server code

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 ?

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

Arguments not being passed to Server code

Hi Shawn,

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

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

Regards

Shawn
Posts: 0
Joined: Sat Jun 21, 2014 11:13 pm

Arguments not being passed to Server code

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

here are all the settings

Image

Image

Image

Image

Image

Image

Ihor Didevych
Posts: 0
Joined: Wed Nov 19, 2014 7:55 pm

Arguments not being passed to Server code

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

Shawn
Posts: 0
Joined: Sat Jun 21, 2014 11:13 pm

Arguments not being passed to Server code

Thats great Ihor. It works now. Thanks

Return to “Issues”