-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
loadImage() broken when using Editor with p5 0.10.2 #1196
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
Comments
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already. |
when you're calling |
The path is to a file uploaded to the web editor. In this example at least. |
with some digging, i think it's related to #496... since |
Oops! I should've caught that. Thanks for making the connection! I am happy closing this as a duplicate but maybe I should make a note in the other issue pointing out that the issue should be resolved before updating the editor link to the latest version of p5 since the GIF feature relies on a content-type check? |
makes sense to me to get it fixed before updating the p5 version! |
Nature of issue?
Details about the bug:
I am using the web editor to host some examples for p5.xr, so I have been manually loading in v0.10.2 of p5 into the editor since it isn't default linked yet. This is lucky because in doing so, I found that
loadImage()
silently fails (or silently to the editor console, not to the browser console).The error is :
for this line. So
fetchResponse.headers.get('content-type')
is returningnull
. Note that this works when the sketch is run locally.Funny enough, I actually wrote the line that is giving the bug. I can fix it on the p5 side if that makes sense, but I am wondering if there is any idea over here as to why this would throw an error on the editor in specific?
The text was updated successfully, but these errors were encountered: