Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

appery inject its own url?

Chrome browser..
Testing phonegap app. In Appery Web mobile test
I have a rest service thats fired on timer. And sends data to my server.
Now it always gives 404 error and the url of rest service is not my server but is the appery server.
eg.
code
Request URL:http://appery.io/app/view/9c9d821d-8657-4431-99b1-43346bc3242/SYS/Region1/app_scripts/techactivity_app.php/code
Request Method:POST
Status Code:302 Moved Temporarily

This should becode
Request URL:http://www.myserver/SYS/Region1/app_scripts/techactivity_app.php/code
Shouldn't it?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

appery inject its own url?

Check the service URL -- it looks like the project name is prepended...are you using any variables in the URL?

What is Appery.io web mobile tester? Are you using the native tester?

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

appery inject its own url?

CRAP!!!
On the service url I was using added JS to read localstorage of the url to use.

Some time ago I changed this to provide separate url data like https or http and the host name etc. So without the prefix the url whas prepended by appery server..

Sorry Max. If u were closer I'd by u a beer for this...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

appery inject its own url?

No worries :)

Return to “Issues”