Balajee Shrikanth6021459
Posts: 0
Joined: Sun Jul 07, 2013 12:25 am

REST service not working

I invoke a rest service which works in test but doesnt work when run in the app. No error in firebug console. I have tried with appery proxy in test mode as well as exported and tested

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

REST service not working

Please send us screenshots of the Mapping.

Balajee Shrikanth6021459
Posts: 0
Joined: Sun Jul 07, 2013 12:25 am

REST service not working

Here are the screenshots Image Image Image Image Image

Balajee Shrikanth6021459
Posts: 0
Joined: Sun Jul 07, 2013 12:25 am

REST service not working

If u see the screenshot on invocation of Login, the new screen should be shown. However the REST service has issues (not seen in firebug console) and I keep seeing spinning icon. If I remove the REST service, the new screen loads fine.

Balajee Shrikanth6021459
Posts: 0
Joined: Sun Jul 07, 2013 12:25 am

REST service not working

mapping of response screenshot Image

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

REST service not working

I'll test and let you know.

Anton Artyukh5836028
Posts: 0
Joined: Wed May 08, 2013 12:57 pm

REST service not working

Hello,

The thing is appery request tester works not the same as service in your app.

Please check Use Appery.io Proxy on Settings tab.

For understanding what happened here, you need look at Net tab in firebug while requests are running. You try make cross-domain request, which not allowed for many services.

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

REST service not working

Hello! Sorry for delay. Everything looks correct on screenshots. So please check if you changed anything on Source tab. If so try to delete edited files and do "Undo".

Harold Gottschalk
Posts: 0
Joined: Wed Mar 27, 2013 9:42 pm

REST service not working

What I find interesting is that you have the proxy turned off in your settings and it is creating code that says to use the proxy. I have to wonder why that is?

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

REST service not working

Could you clarify where do you see that "it is creating code that says to use the proxy"? Do you mean Source tab? Have you changed anything on Source tab in file you're referring to? If so then any changes you do in editor won't be applied to that file. If you didn't change anything in source file be sure you saved the project before check file (it's needed to refresh the code).

Return to “Issues”