Hi,
I have created a random dot motion experiment in Psychopy, to be used in an online study.
It runs in-app on Psychopy and is synced with my Pavlovia account. The URL for the experiment is given below.
URL of experiment:
https://run.pavlovia.org/claireflynn/randomdotmotion
Description of the problem: The experiment runs and shows the instruction pages but an error message pops up on the screen when the dot stimuli are supposed to appear. The message reads “TypeError: Cannot read properties of undefined (reading ‘0’)”. When I look into the task code the following errors are shown:
PsychoJS.js:730 TypeError: Cannot read properties of undefined (reading ‘0’)
at Object.next (TrialHandler.js:158:47)
at Scheduler._currentTask (final_rdm.js:1290:16)
at Scheduler._runNextTasks (Scheduler.js:215:24)
at async Scheduler._runNextTasks (Scheduler.js:222:13)
at async Scheduler._runNextTasks (Scheduler.js:222:13)
at async Scheduler._runNextTasks (Scheduler.js:222:13)
at async update (Scheduler.js:136:18)
window.onunhandledrejection @ PsychoJS.js:730
log4javascript.js:148 FATAL 16:27:45.634 _GUI.dialog psychojs-2022.2.4.js:1257 | {}
BrowserConsoleAppender.append @ log4javascript.js:148
TrialHandler.js:158 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘0’)
at Object.next (TrialHandler.js:158:47)
at Scheduler._currentTask (final_rdm.js:1290:16)
at Scheduler._runNextTasks (Scheduler.js:215:24)
at async Scheduler._runNextTasks (Scheduler.js:222:13)
at async Scheduler._runNextTasks (Scheduler.js:222:13)
at async Scheduler._runNextTasks (Scheduler.js:222:13)
at async update (Scheduler.js:136:18)
I am not sure where to start with debugging the code in order for the task to run online.
Any help would be greatly appreciated.
Thank you.