Unable to download resource, FILE_LOAD_ERROR

Hello,

I was able to work this experiment before, and I made some changes to where some images will appear on the screen. For some reason I am getting this file load error and I haven’t been able to find or apply solutions to it. I’d really appreciate another set of eyes on this!
URL of experiment: Pavlovia
Language, Cognition and Development Lab / Triplet Game · GitLab

Screen Shot 2021-05-13 at 18.01.57

Where is your JavaScript file? If it’s in the html folder then html shouldn’t be in the path, and your path should probably be images/Mask.png

Have you checked the capitalisation?

Are other images working?

Does it work locally?

1 Like

Hello,

could it be that your project is not public? I get a 404 page not found error.

Best wishes Jens

1 Like

While we would need the project to be public to pilot it or view the code, it doesn’t need to be public to run or for the owner to pilot.

1 Like

@wakecarter @JensBoelte I just made it public! I just changed the path, but seemed to have the same issue still

I spot a backslash in that path

1 Like

What ended up being the original problem? I’m having a similar problem where I made a small edit and now no resources can load on Chrome.

What does your error message look like?

This is when I try to pilot: “unable to download resource: webgazer.js (FILE_LOAD_ERROR)”

However, I think it has something to do with my browser and cookies, because clearing cookies and testing it in an incognito window sometimes works. Although I’ve gotten messages for other resources that fail to load (e.g., images and Excel files). None of this seems to happen when opening it from a new computer with no history of the experiment (e.g., a participant).

I am facing the same error. I had created this program in an older version and have now updated Psychopy to the latest version. Do you know how to resolve this error? Thank you so much!

Have you attached the resources in Experiment Settings / Online ?

Yes. I never encountered this error in the previous version. This code was written and up and running in the older version. But, to resolve the traceback error, I installed the latest version and now I am getting this error. The files are not getting downloaded (Attached in the images) and then the unknown resource error.


Please could you upload a screenshot to show that you’ve done this step. Your reply isn’t clear on this point.

Here’s the screenshot. ‘image’ variable is part of an excel file which is also included in the resources.

What version of PsychoPy are you using? I note that your output path is html (which isn’t recommended any more). Versions 2020.2.1-4 had an issue with the connection of the additional resources. However, you could try manually copying the files to html/resources.

html/resources contains all the images that I used in the program. I used version 2021.1.3 to make the program and then I updated to version 2021.2.0. After this update, I started getting this error. Is there anything else that I can do?

@TParsons Might there be a new error in 2021.2 which means that “Additional Resources” doesn’t work with a specified output path?

I reinstalled the version 2021.1.3 and its working great! Thanks again!

That seems the best explanation, I’ll confer with the JS team to see what’s going on - the key question is whether Builder is sending the wrong file paths to Pavlovia or whether Pavlovia isn’t reading them properly. Either way this is a priority so you can expect a fix in 2021.2.1 :slight_smile:

Probably 2021.2.2 unless you have a time machine.

2 Likes