Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getInfo fails in crud example #3

Open
michielbdejong opened this issue Mar 1, 2015 · 0 comments
Open

getInfo fails in crud example #3

michielbdejong opened this issue Mar 1, 2015 · 0 comments

Comments

@michielbdejong
Copy link
Owner

If you try out example.html from this repo, you will see this in the console:

"now we can use the ludbud object to access the user's data"
"C.reate:" null ""6awcABZr8n1xh3xtvMcFsS""
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://storage.5apps.com/michiel2/ludbud/test.txt. This can be fixed by moving the resource to the same domain or enabling CORS.
"R.ead info:" "ERR_TIMEOUT" undefined
"R.ead folder /ludbud/:" null Object { test.txt: Object }
"R.ead body (ArrayBuffer)" null ArrayBuffer { byteLength: 4 }
"R.ead body (as utf-8)" "asdf"
"U.pdate:" null ""8wN2OFSIgx0g8MxKwbMql""
"D.elete:" null

The HEAD request to https://storage.5apps.com/michiel2/ludbud/test.txt fails (even though the GET request to the same document is successful). We know this is a problem on the 5apps side, because the http response code is 500 (probably a variation 5apps/liquor-cabinet#48).

Ludbud cannot display this as Ludbud.ERR_SERVER_ERROR, because of 5apps/liquor-cabinet#47 so from inside its sandbox, it thinks it's a timeout and gives you Ludbud.ERR_TIMEOUT instead (even though the developer can see the full info using the console).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant