PennController for IBEX › Forums › Support › My images cannot be loaded.
- This topic has 4 replies, 2 voices, and was last updated 2 years ago by
chrkkang.
-
AuthorPosts
-
August 14, 2022 at 1:01 pm #8335
chrkkang
ParticipantHello!
I am building a picture-matching experiment that is very like the sample experiment. However, I have two problems I hope to get your help about:
i. My pictures cannot be loaded (so I cannot see the pictures at all!)
ii) It takes too much time to move to the subsequent trial.I searched for similar issues in the forum to get some solutions, so I tried to do the zip-file solution but I failed (and I got a message like this: Error downloading https://us-east-1.console.aws.amazon.com/s3/object/kangnullexp?region=ap-northeast-2&prefix=nullargumentpriming/picture_stimuli.zip:;Error: InvalidStateError: Failed to read the ‘responseText’ property from ‘XMLHttpRequest’: The value is only accessible if the object’s ‘responseType’ is ” or ‘text’ (was ‘arraybuffer’). (newTrial: 0-consent)
So, I gave up using the zip file solution and uploaded all the picture files to the PCIbex farm resource hoping to get any advice from you. I am looking forward to hearing from you back!
Here is my farm link: https://farm.pcibex.net/r/kdtKCZ/August 15, 2022 at 12:00 pm #8337Jeremy
KeymasterHello,
None of the image references in your CSV tables include the filename’s extension (
.PNG
) so whatever method you use to host your images, as long as there’s a mismatch between the filenames (ie. lacking the extension, in your case) the references simply will point to an invalid URL and no image will be foundRe. the zip file in the S3 bucket, it’s not public: when I click the link in your message, I get to the sign-in AWS portal. If I cannot access the zip file manually, a fortiori I cannot access it in the background when taking the experiment either
Jeremy
August 16, 2022 at 11:52 am #8339chrkkang
ParticipantThank you for your reply! I changed the image references in my CSV tables as you said, but still, the problem remains. The images were not loaded and it takes too much time to move to the subsequent trial.
Here I attached updated versions of my experiment links:i) A version with individual files in the farm resource:
https://farm.pcibex.net/r/kdtKCZ/ii) A version with a zip-file link:
https://farm.pcibex.net/r/yAnQcC/iii) The error message I got from the updated version with the zip-file link (now it is public!):
[0:50:36] Error downloading https://kangnullexp.s3.ap-northeast-2.amazonaws.com/nullargumentpriming/picture_stimuli.zip:;Error: InvalidStateError: Failed to read the ‘responseText’ property from ‘XMLHttpRequest’: The value is only accessible if the object’s ‘responseType’ is ” or ‘text’ (was ‘arraybuffer’). (newTrial: 0-consent)Thank you very much for your help!! I really appreciate it!
Chorong.August 16, 2022 at 12:24 pm #8340Jeremy
KeymasterHi Chorong,
1. The extensions of your files are
.PNG
, not.png
2. Your zip file is now publicly downloadable, but its CORS settings are still misconfigured. You need to set the CORS as explained here
Jeremy
August 17, 2022 at 9:13 am #8343chrkkang
ParticipantHi again!
It works very well, now!
Many many thanks for your detailed explanation. It was really helpful!Chorong.
-
AuthorPosts
- You must be logged in to reply to this topic.