Invalid Array Length RangeError when importing condition sheet only in Browser/Javascript at end of loop

URL of experiment: Pavlovia

Description of the problem: So I have a loop that runs over an image rating routine 30 times. I am getting the image paths from a conditions file that has two columns: condition_id and img_path. Everything works well until the very last iteration when I get the following error:

image

Note: This error only happens when I am running on the browser through the builder and when I am running the pilot on pavlovia. When I am running locally through psychopy, there is no issue which implies that this is a problem with how the javascript is reading my excel sheet.

Other relevant screenshots:
image
image

Hi There,

Pleas emay you share the .xlsx sheet that you are using?

Thanks!
Becca

Here is the excel sheet I am using:
practice_stim_sheet.xlsx (3.4 KB)

Try removing ./ from the start of the paths

Use an incognito tab to check the experiment once you’ve synced the new spreadsheet

Hey, that did not solve the problem. At the very last loop iteration, I get the same error again.

I have been running all my browser run-throughs in incognito windows.

Another interesting observation I had today: I reconstructed the entire experiment from scratch in a new directory by copy-pasting the components. The error went away.

However, I have to run 5 variants of the experiment with different stimuli. When I copied the experiment file into a new directory with the necessary data dependencies, I got this error again in the new experiment and the old one! I am not sure how to make sense of this. I think I will have to make 5 experiments from scratch.