Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

JSON decode error when using url #12

Open
netgfx opened this issue Nov 4, 2020 · 0 comments
Open

JSON decode error when using url #12

netgfx opened this issue Nov 4, 2020 · 0 comments

Comments

@netgfx
Copy link

netgfx commented Nov 4, 2020

JSON.parse: unexpected character at line 1 column 2 of the JSON data

When I print the data returned from the file loader it is ArrayBuffer { byteLength: 3423 } So this is why the JSON.parse is failing.

I'm using a url for data-url e.g: https://somesite.com/data.json

and the image as an a-asset id #img

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

No branches or pull requests

1 participant