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

Uncaught (in promise) SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON #149

Open
UniworldStudios opened this issue Dec 21, 2023 · 1 comment

Comments

@UniworldStudios
Copy link

UniworldStudios commented Dec 21, 2023

My h5p file is saved on digital ocean spaces and after download and unzipping the file i am passing it top the player but i am getting below error

Uncaught (in promise) SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

But when i pass the file path from local storage it is working.

Note : I am working in reactjs

@AmirKosari
Copy link

Did you find any workarounds? I have the same issue, it seems like h5p-standalone (as the name may suggest) can't load h5p files that are being fetched from an external source (like a CDN in my case or digital ocean in your case). I don't know if there's a workaround for this. would love to know the creator's take on this and help contribute for a solution if possible.

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

No branches or pull requests

2 participants