My images cannot be loaded.

PennController for IBEX Forums Support My images cannot be loaded.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #8335
    chrkkang
    Participant

    Hello!

    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/

    #8337
    Jeremy
    Keymaster

    Hello,

    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 found

    Re. 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

    #8339
    chrkkang
    Participant

    Thank 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.

    #8340
    Jeremy
    Keymaster

    Hi 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

    #8343
    chrkkang
    Participant

    Hi again!
    It works very well, now!
    Many many thanks for your detailed explanation. It was really helpful!

    Chorong.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.