psychopy.org | Reference | Downloads | Github

JavaScript error when running experiment on other server

URL of experiment: https://129.114.27.183
Version of PsychoPy I use: v2020.2.8 for Mac
System version of Mac: Big Sur 11.0.1
Experiment setting for Use PsychoPy version: latest
Description of the task: A go/nogo task with emotional stimuli from the Karolinska Directed Emotional Faces (KDEF).
Components of the task: except the basic components of the task (e.g. text and image), I also created a code component in the practice session (see below).

Begin experiment:
msg=‘doh!’#if this comes up we forgot to update the msg!
msgColor = ‘Yellow’

Begin routine:
if Practice_resp.corr:
msg = “Correct!”
msgColor = ‘green’
#check if a key was pressed:
elif Practice_resp.keys == None:
msg = “Too slow!”
msgColor = ‘red’
else:
msg = “Oops! That was wrong”
msgColor = ‘red’

Description of the problem:
My task works well on Pavlovia but I was trying to run this experiment on the server of Chameleon. However, the task stuck in the page that shows “Unspecified JavaScript error”. Then I used the JavaScript Console on Safari to check the error, there are two errors listed (see attached screenshots).

Does anyone know why this happens and what I can do for resolving this?
Thank you in advance for your time.

We can’t hope to support running studies on any of a multitude of other servers. I’d suggest you ask for support from the other service you are using.