URL of the experiment:
Description of the problem:
Hi, I want to run my experiment via Pavlovia, but I encounter an Alert message (4210) that prevents me from running it online. I have identified that there is a syntax problem, but I’m not sure how to find it. Where is the ‘begin JS tab’? I have searched the forum and read all the conversations regarding this Alert number, but unfortunately, none of them have led me to understand the specific syntax error and how to find it.
here is the beginning of my JS code:
/***************
T1T2T3 Test *
***************/
import { core, data, sound, util, visual, hardware } from ‘./lib/psychojs-2023.1.3.js’;
const { PsychoJS } = core;
const { TrialHandler, MultiStairHandler } = data;
const { Scheduler } = util;
//some handy aliases as in the psychopy scripts;
const { abs, sin, cos, PI: pi, sqrt } = Math;
const { round } = util;
please assist me with this…
thank you all in advance
Have a look at these threads for how to trace the issue
URL of experiment: WM Task v1 [PsychoPy]
Description of the problem: I have created an experiment on version 2020.2.0 that works perfectly online but when I try to run the study online with Pavlovia, the screen gets stuck on “initializing the experiment…”
I have attached the generated files in a zip (excluding the videos), and would greatly appreciate any help with getting it to work!
wm task.zip (38.2 KB)
URL of experiment: Constellations_NAI2022_ENG [PsychoPy]
Description of the problem:
Hello,
I’ve run into a problem with putting my experiment online through pavlovia. The experiment always gets stuck on “initialising experiment”. The experiment works fine offline though. I think that the error message for the problem is “Alert 4210:JavaScript Syntax Error in ‘Begin JS Experiment’ tab. See ‘Line 2: Unexpected token ILLEGAL’ in the ‘Begin JS Experiment’ tab.
For further info see 4210: Probabl…
OS : macOS Monterey v. 12.1
PsychoPy version : v2022.1.1
Standard Standalone? (y/n) If not then what?:y
What are you trying to achieve?: I recently got a new computer, downloaded the newest version of PsychoPy, and tried to run an experiment that worked on the previous version of PsychoPy (v2021.2.3). When I ran my experiment, it would start normally asking for the participant and session which I would enter. It switched to the grey starting screen like normal but would then crash, and in the…
URL of experiment: Pavlovia
Description of the problem: I used the crib sheet to code the beginning of my experiment. I looked through my previous mistakes as well as another online study I got to work on Pavlovia earllier, however I cannot seem to find why this experiment is stuck at initialising. I would really appreciate any insights as to why this may happen.
Thank you!
Hello PsychoPy community;
I am working on moving an experiment from my local machine to Pavlovia.
When I try to export to html, I get this error message:
371.9842 ERROR Line 120: Unexpected token in meloChoice_go.js
Alert 4210:JavaScript Syntax Error in 'Begin JS Experiment' tab. See 'Line 12: Unexpected token' in the 'Begin JS Experiment' tab.
For further info see https://psychopy.org/alerts/4210.html
Alert 4210:JavaScript Syntax Error in 'Begin JS Experiment' tab. See 'Line 12: Une…
1 Like