Page 1 of 1
Having issue with Rest service. Google returning error.
Posted: Sun Jul 20, 2014 7:09 am
by Chris6995508
OPTIONS http://isbndb.com/api/v2/json/UNB0Z8M... 404 (Not Found) jquery-1.9.1.js:8526
send jquery-1.9.1.js:8526
jQuery.extend.ajax jquery-1.9.1.js:7978
Apperyio.RestService.$a.createClass.process appery.js:1648
Apperyio.DataSource.$a.createClass.execute appery.js:1531
$.off.on.click VM6917:207
jQuery.event.dispatch jquery-1.9.1.js:3074
elemData.handle jquery-1.9.1.js:2750
XMLHttpRequest cannot load http://isbndb.com/api/v2/json/UNB0Z8M.... No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://appery.io' is therefore not allowed access. AddTextbook.html:1
Uncaught SyntaxError: Unexpected end of input VM6917:114
Apperyio.DataSource.onError VM6917:114
Apperyio.DataSource.$a.createClass.__errorHandler appery.js:1459
proxy jquery-1.9.1.js:818
fire jquery-1.9.1.js:1037
self.fireWith jquery-1.9.1.js:1148
done jquery-1.9.1.js:8076
callback
Is there a work around? Will this happen when I launch the app? Thanks in advance!
Having issue with Rest service. Google returning error.
Posted: Sun Jul 20, 2014 10:55 am
by Illya Stepanov
Hi Chris,
Please clarify how you are testing?
Make sure that - http://isbndb.com/api/v2/json/UNB0Z8M... -- is existing and access control is allowed.
Look here for details: http://devcenter.appery.io/documentat...
Also another way is to use Appery.io proxy: http://devcenter.appery.io/documentat...
Having issue with Rest service. Google returning error.
Posted: Sun Jul 20, 2014 2:48 pm
by Chris6995508
I created the service and tested the request and it was successful and gave me the correct response. It is when I run the mobile test in chrome that I am getting the error,.How would I know if the access control is allowed on isbndb? I remember reading somewhere that it is because it is a cross domain request. I will try out the Appery.io proxy however will this work for users when we launch the app? Thanks.
Having issue with Rest service. Google returning error.
Posted: Sun Jul 20, 2014 2:56 pm
by Illya Stepanov
Please clarify what do you mean under launch the app? This behaviour should not appear in the app installed on the device.
Having issue with Rest service. Google returning error.
Posted: Sun Jul 20, 2014 2:59 pm
by Chris6995508
It would be a mobile web app that is hosted on a custom domain and the DNS points to the Appery.io servers. Would this work? Or will we have to export it as android/ios app and go that way?
Having issue with Rest service. Google returning error.
Posted: Sun Jul 20, 2014 8:31 pm
by Chris6995508
I exported the project as an android binary and installed it onto my phone. It still will not connect to isbndb.
Having issue with Rest service. Google returning error.
Posted: Mon Jul 21, 2014 9:37 am
by Kateryna Grynko
Hi Chris,
When we try to open your link in browser http://isbndb.com/api/v2/json/UNB0Z8M... we get Page Not Found. Please make sure you use the correct link.
Please find more regarding cross-domain requests here:
http://devcenter.appery.io/documentat...
Having issue with Rest service. Google returning error.
Posted: Mon Jul 21, 2014 4:25 pm
by Chris6995508
I got the issue resolved. I redid the binary for the phone and it works running on the device. The isbndb link adds a parameter at the end for the isbn . Thanks for your help.
Having issue with Rest service. Google returning error.
Posted: Mon Jul 21, 2014 4:27 pm
by Evgene Karachevtsev
Hello Chris,
Thank you for the update. Do not hesitate to contact us if you need any further help.