Page 1 of 1

appery inject its own url?

Posted: Thu May 30, 2013 9:48 pm
by Emmz

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?


appery inject its own url?

Posted: Thu May 30, 2013 9:55 pm
by maxkatz

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?


appery inject its own url?

Posted: Thu May 30, 2013 10:08 pm
by Emmz

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...


appery inject its own url?

Posted: Thu May 30, 2013 10:08 pm
by maxkatz

No worries :)