Unable to download resource

Hi,
I am new to online testing and am struggling to get anything to work on pavlovia as none of my images will load.

I created a super basic practice experiment which simply involves an image component appearing for 5 seconds. It works completely fine when run offline but when I click to Pilot it on pavlovia I get the error:

  • when downloading the resources for experiment: Image
  • unable to download resource: images/image1.PNG (FILE_LOAD_ERROR)

I have read so many posts on this forum trying to solve this, and none have worked.
There is only one small image, and I have tried with different file formats.
I have also added the file to the ā€˜additional filesā€™ section of the settings>online tab.
Each time I sync I clear my cache
Lots of previous posts talk about the html/resources folder however more recent posts seem to suggest this is no longer a thingā€¦and I dont have these folders.

Does anyone have any idea as to what could be causing this error?

Maybe try it out with a different image to see what happens then? For instance, Iā€™m quite sure the PNG file in this experiment loads without errors.
https://gitlab.pavlovia.org/tpronk/e2e_img/blob/master/img/kitten_png.png

Hello,

Iā€™m getting the same error at the moment. Works fine in Psychopy. Have checked the image files and uploads all seem fine and are in /png format. They the same images have worked fine for me on another online Pavlovia experiment, so in my case not an issue with the files. For me the error changes with the resource specified changing (e.g. sometimes img 5 sometimes img 6 etc) suggesting some sort of general loading error? Very appreciative of any suggestions. Clearing cache and running using incognito donā€™t fix the issue. Is it possible to have too many or too large image files? Or too many nested loops?

code here: https://gitlab.pavlovia.org/dyke/online_fruitv4

Hi, all!! Iā€™d like to add that Iā€™ve been experiencing the same thing as described in katDykeā€™s post above. Like katDyke, moreover, I have followed pretty nearly all threads on this & similar topics, & have tried all the fixes suggested that donā€™t involve hard-core coding, and I still have no resolution to the problem.

If anyone has any advice/ suggestions, theyā€™re very welcome!! Thank you all!!! :slight_smile:

  • cLEE.

Oops! I forgot to include the link to my experiment (which I can only pilot at present, having no license.)

Link: https://gitlab.pavlovia.org/nerdonlinetools/sldtoolkit-dysc-mrtwintask

Hi
Thanks for your speedy reply!

I have tried it with your kitten picture but no luck.
When I run your e2e_img experiment through the Explore section of pavlovia it loads just fine, however when I put your kitten picture into my study it is unable to load it.

OK, letā€™s find out whatā€™s up!

  • @cLEE, I canā€™t access your experiment, could you give me access? (or make it public)
  • @EJJ, could I also have access to yours?

Thank you - I am probably doing something stupid but it for the life of me I cant see what it is thats the problem!

Its public and in piloting mode

Hi @ thomas_pronk :-). I replied a short while ago by messaging you directly, sharing my login ID & pw. Iā€™m not sure whether my message went through, & canā€™t seem to find a log of my ā€˜sentā€™ messages. Iā€™d much appreciate it if youā€™d let me know if you received my message.

Thanks a tonne!

  • cLEE.

@EJJ, I cloned your experiment and I can tell you whatā€™s going wrong. The file has itā€™s extension in lowercase (img_kitten_png.png), but in the image stimulus you refer to it with uppercase (img_kitten_png.PNG).

I assume that this worked locally because in Windows, filenames arenā€™t case-sensitive (i.e. Windows doesnā€™t care whether you write img_kitten_png.png or img_kitten_png.PNG). But on the Internet, this does matter.

By writing img_kitten_png.png instead, my version of your experiment did work online.

3 Likes

@cLEE, sent you a PM in reply

Yes, I just responded to that, thanks!

cLEE.

Oh my what a silly mistake for me not to have noticed!

Thank you so much for taking the time to look at this for me :slight_smile:

Elle

1 Like

@cLEE, to give others access to you experiment, take the following steps:

  • On pavlovia.org, at the page for managing your experiment, click ā€œView Codeā€
  • This will take you to the repo of your experiment, hosted on gitlab.pavlovia.org
  • At the left is a panel, with various links, one of them being ā€œSettingsā€. Click Settings, then Members.
  • Youā€™ll see a page where you can invite members to your repo, thus giving them access.
  • To be sure that the member has access to your experiment code, give a member the ā€œdeveloperā€ or ā€œmaintainerā€ role.

My username on pavlovia is tpronk.

Hope this helps!

@ thomas_pronk: Thank you very much indeed for that information. I have just added your ID, and am hopeful of resolving this soon, with your advice.

Cheers!

  • cLEE. :smiley:

Hey @cLEE, I think your issue has the same cause as @EJJ had. See my earlier post in this thread for a detailed reflection.

Applied to your experiment: I got an error message that referred to ā€œRita_008-Hop.pngā€, but the filename of this stimulus is ā€œRITA_008-Hop.pngā€. Changing Rita to RITA wil probably fix the error.

@ thomas_pronk, You were right, thank you! :smiley: I had looked up a similar error in a thread posted previously, and had gone back and verified the ā€œ.pngā€ vs. ā€œ.PNGā€ issue, but had missed the big, white elephant on the sofa ā€“ the case mismatch in my filenames!! 8-< Thanks, awfullyā€¦ but for your pointing that out, Iā€™d probably still be looking for the proverbial nose on my face.

  • cLEE.
1 Like

Iā€™ll leave this here in case it helps anyone - I found my issue and itā€™s one of those annoying careless onesā€¦
Psychopy didnā€™t care about case sensitivity in image file names in .csv file and so it ran fine, butā€¦Pavlovia did and so wouldnā€™t load them. So if youā€™ve done everything else check case sensitivity very carefully!

1 Like

Hi! Iā€™m having a really similar issue, but I donā€™t see any discrepancies in my file names. The experiment runs fine on psychopy, but when I run it on Pavlovia, I get the error message: " * unable to download resource: ā€¦/ā€¦/InfinityThesisPracticeStimuli.xlsx (ā€¦/ā€¦/InfinityThesisPracticeStimuli.xlsx)"
The file is saved in the correct folders on my computer and can be downloaded from my WebIDE page. I just added you as a maintainer on my experiment. Here is the link from my dashboard page: ImplicitInfinitySC-SLOWTASK [PsychoPy]

Thank you in advance for any advice you might have!

So, I managed to fix this on my own, but I have no idea how I did it. Oops!

1 Like