Error when importing study into both local and server JATOS installation
Hi Everyone,
I have been coding an experiment for the first time, and have gotten my experiment working well on my local JATOS server. The experiment has three components.
However, when I try to import the .jzip into either a local or server JATOS installation I receive the following error: "Import of study failed: Component is invalid".
I am using JsPsych code (v8), and the JATOS server installation is v3.9.5.
I am using Firefox 139.0.1 (64-bit).
I also get this error in the developer console:
Status400
Bad RequestVersionHTTP/1.1
Transferred1.01 kB (44 B size)
Referrer Policystrict-origin-when-cross-origin
DNS ResolutionSystem
Content-Length44
Content-Security-Policyscript-src 'nonce-wLKLr0U6UnyhMzt6TwzXfw==' 'unsafe-inline' 'unsafe-eval' 'strict-dynamic' https: http:; base-uri 'self'; object-src 'none'
Content-Typetext/plain; charset=UTF-8
DateMon, 02 Jun 2025 03:06:25 GMT
Referrer-Policyorigin-when-cross-origin, strict-origin-when-cross-origin
Set-CookiePLAY_SESSION=eyJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7InVzZXJuYW1lIjoiai5yeWVAc3R1ZGVudC51bnN3LmVkdS5hdSIsImtlZXBTaWduZWRpbiI6ImZhbHNlIiwiY3NyZlRva2VuIjoiNWM1NWI1NmQ1MDU1MWQ3ZjhmYWU2MzQzZmM5NjVhMjYxNWE2NTI4OC0xNzQ1NDUwNzA2OTQxLWY0MDI3YTFkZTc1ZjllOWFmYzkxYjYzZSIsImxhc3RBY3Rpdml0eVRpbWUiOiIxNzQ4ODMzNTc2NDM0Iiwic2lnbmluVGltZSI6IjE3NDg4Mjg3NzE0OTUifSwibmJmIjoxNzQ4ODMzNTg1LCJpYXQiOjE3NDg4MzM1ODV9.vqIy-ceh-j3YtIMIkK8iOKaN29PpkzhMEixHnDthhJA; SameSite=Lax; Path=/; HTTPOnly
VaryOrigin
X-Frame-OptionsSAMEORIGIN
X-Permitted-Cross-Domain-Policiesmaster-only
X-XSS-Protection1; mode=block
Accept*/*
Accept-Encodinggzip, deflate
Accept-Languageen-US,en;q=0.5
Connectionkeep-alive
Content-Length5337492
Content-Typemultipart/form-data; boundary=----geckoformboundarydd8ee67cf4cf3b446694356bab6e508e
CookieAMCV_8A5564D65437E5950A4C98A2%40AdobeOrg=179643557%7CMCIDTS%7C20236%7CMCMID%7C40664483848834971760592414077423156848%7CMCAID%7CNONE%7CMCOPTOUT-1748324136s%7CNONE%7CvVersion%7C5.5.0; mbox=PC#f4ea1c6ee5e840a690c0c0301f6f6b13.36_0#1768535920|session#df057245dbd440cf8c5cd8985f2fb1b6#1748318769; s_ecid=MCMID%7C40664483848834971760592414077423156848; nmstat=99d3ecfd-5677-46e7-51f6-7e2bd113426c; AMCV_4D6368F454EC41940A4C98A6%40AdobeOrg=179643557%7CMCMID%7C40664483848834971760592414077423156848%7CMCIDTS%7C19860%7CM…75824496.1747553005; AMCVS_8A5564D65437E5950A4C98A2%40AdobeOrg=1; at_check=true; PLAY_SESSION=eyJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7InVzZXJuYW1lIjoiai5yeWVAc3R1ZGVudC51bnN3LmVkdS5hdSIsImtlZXBTaWduZWRpbiI6ImZhbHNlIiwiY3NyZlRva2VuIjoiNWM1NWI1NmQ1MDU1MWQ3ZjhmYWU2MzQzZmM5NjVhMjYxNWE2NTI4OC0xNzQ1NDUwNzA2OTQxLWY0MDI3YTFkZTc1ZjllOWFmYzkxYjYzZSIsImxhc3RBY3Rpdml0eVRpbWUiOiIxNzQ4ODMzNTc2NDM0Iiwic2lnbmluVGltZSI6IjE3NDg4Mjg3NzE0OTUifSwibmJmIjoxNzQ4ODMzNTc2LCJpYXQiOjE3NDg4MzM1NzZ9.9kaNs4B-GjKCk1UALPDP-tPqIiBAkrq0e3WrUQ4Jz4k
Csrf-Token666387607b5b5d6b695d5f150779e34499110b56-1748832745217-f4027a1de75f9e9afc91b63e
Hostjatos.psy.XXXX.edu.au:9000
Originhttp://jatos.psy.XXXX.edu.au:9000
Refererhttp://jatos.psy.XXXX.edu.au:9000/jatos/2317
User-AgentMozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0
X-Requested-WithXMLHttpRequest
The way the files are currently structured in study_assets_root is as follows:
Main folder/Experiment 1/ CSS folder, JS folder, Stimuli (images folder), config.js, index.html
Main folder/Experiment 2/ Stimuli (images) folder, JS folder, JS pages folder, config.js, index.html
Main folder/Experiment 3/ CSS folder, config.js, index.html
Main folder/Shared Folder/ Scales folder, JS folder(contains JsPsych V8 library, config.js), Utils folder (contains jatos.js, jatos-utils, prolific-utils)
Thanks for your assistance!
Cheers,
Jesse