Chris6995508
Posts: 0
Joined: Sun Jul 20, 2014 7:09 am

Having issue with Rest service. Google returning error.

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!

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Having issue with Rest service. Google returning error.

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

Chris6995508
Posts: 0
Joined: Sun Jul 20, 2014 7:09 am

Having issue with Rest service. Google returning error.

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.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Having issue with Rest service. Google returning error.

Please clarify what do you mean under launch the app? This behaviour should not appear in the app installed on the device.

Chris6995508
Posts: 0
Joined: Sun Jul 20, 2014 7:09 am

Having issue with Rest service. Google returning error.

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?

Chris6995508
Posts: 0
Joined: Sun Jul 20, 2014 7:09 am

Having issue with Rest service. Google returning error.

I exported the project as an android binary and installed it onto my phone. It still will not connect to isbndb.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Having issue with Rest service. Google returning error.

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

Chris6995508
Posts: 0
Joined: Sun Jul 20, 2014 7:09 am

Having issue with Rest service. Google returning error.

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.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Having issue with Rest service. Google returning error.

Hello Chris,

Thank you for the update. Do not hesitate to contact us if you need any further help.

Return to “Issues”