When trying to pilot my experiment (link) I get an unknown resource error. When I start the pilot and I have to type in a PPID, I see that ‘all resources are downloaded’, but the progress bar seems to remain blank. This suggests to me that no files were uploaded and that my files might be in the wrong place? I followed the steps of the youtube tutorial, and my git repository looks the same as Rebecca’s (as far as i can tell).
I am running the experiment from the root, and all stim/resources files are in the root folder. In my image components, there is no path, just [img].png
What I’ve done so far:
I checked for typos, spaces, caps, etc
edit: I checked file types/extensions
I deactivated the experiment, cleared browser cache and reactivated it
I tried hard refresh
I deleted the project and uploaded it again under a new project name
I am having a similar issue. Just last week I ran my experiment online without any issues - all my resources downloaded and the experiment ran. I don’t believe I changed anything in my JS or settings that would cause this issue but now when I pilot the experiment it “loads” all the resources in a second with the bar empty just like you described. Then I hit okay and get a similar unknown resource message.
I wonder if other people are having a similar issue? Is it our code or did something in the pavlovia servers change? I know they are doing maintenance on it right now so I wonder if it is related.
@Sabinosaurus, I do see some capital letter issues. For example, there is a file “goodROBOT.png”, but in the experiment a request is made for " “goodRobot.png”
Thanks thomas, I fixed that but I can’t sync to pavlovia at the minute; I’ll try again later on. It is not loading any other files though, so I don’t expect that this will fix the issue to be honest.
Then I’d recommend to start off building a new experiment with only part of the resources, test that, and slowly build it up while regularly testing. Easier to pinpoint the issues
No luck. I will check again but my exp was uploading all resources perfectly fine two weeks ago and I did not change the wording of any of my files. I believe my issue lies somewhere in the html or JS where it is trying to upload my resources.
Same here, I checked my files for errors (capital letters, extension, etc) a zillion times and I keep getting the same error message. It seems that none of my resources are being uploaded, and the dialog box says that ‘all resources are uploaded’ and it driving me insane.
I made the project a bit smaller as @thomas_pronk suggested, and removed some ‘unnecessary’ image components, but it’s just moved the error to the next resource it is supposed to upload (which makes sense, I guess).
Would you post a link to your new code? I am going to see any similarities you and I have in our repos/JS and compare to other code to try and pinpoint the issue.
Well I see one issue with your code that may help fix it (I hope). I noticed in your JS you don’t have any code that is loading your resources. Currently you have psychoJS.start({ expName: expName, expInfo: expInfo}) but no resources line. The following is an example of one resource in my JS script. So what you would do is copy that into your JS code component that starts at begin experiment. Then write in the name of every resource you have after ‘name’ and you can just put ‘resources’ after ‘path’ since you have a resources folder. Try this and let me know if it works.
Also if you want another example you can always go into the Stroop demo and click on stroop.js for reference.