Skip to content

getInfo fails in crud example #3

@michielbdejong

Description

@michielbdejong

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions