Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

OSWeb error

Hi,

I'm getting an error when I run my experiment online:


Uncaught TypeError: Cannot read property 'body' of null

  at PythonParser._run_statement (tmpi90if9hh.html:35)

  at PythonWorkspace._eval (tmpi90if9hh.html:35)

  at Sequence.run (tmpi90if9hh.html:35)

  at Sampler._complete (tmpi90if9hh.html:35)

  at Sampler._complete (tmpi90if9hh.html:35)

  at Events.proceed (tmpi90if9hh.html:35)

  at Events._audioEnded (tmpi90if9hh.html:35)

  at HTMLAudioElement.SamplerBackend.sample.onended (tmpi90if9hh.html:35)

DevTools failed to load SourceMap: Could not load content for file:///C:/Users/jelle/AppData/Local/Temp/vendors~osweb.1.3.8.bundle.css.map: System error: net::ERR_FILE_NOT_FOUND


However, when I run the experiment offline, it works just fine. The OSWeb tool also mentions no compatibillity issues. It does warn about 18 MB of attachments (images & audio files), could this be an issue?


Best

Jelle

Comments

  • Hi @JelleStudentRug ,


    Could you attach the experiment?


    Cheers,


    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • Thanks for your quick reply! I tried to attach the experiment here, but I got a 413 code (probably too big of a file). I've uploaded it to google drive, and it can be found through this link:


    https://drive.google.com/file/d/1qRJlNJ8Nli4b6pEpkh0KX60nh7VLbUog/view?usp=sharing


    The experiment itself is in Spanish, with lots of audio files, and I apologise for the lack of comments in the javascript codes. Basically, each item will have a loop to ask several questions: Who is the biggest, Who is the smallest, Who is Dana / Paul / Danny etc., Did they do the task? (for items with Incluso / Ni Siquera) and Did anyone else do the task?. The experiment now gives the error in OSWeb when the participant gets to the question "Who is Dennis?", answers it correctly, hears the feedback, and THEN gets the error, when it should start with the second question "Did dennis get the flower?" (again, all in Spanish, my apologies).


    I suspect multiple possible causes: the conditional statement for running that loop only with the second training item, the same audio file being loaded in the second loop as in the first (which shouldn't be an issue because the positive feedback audio file has been used many times in the instructions already, but who knows), or some other cause.


    Thanks in advance!

    Jelle

  • I have tried the conditional with plain numbers and now it does work. I had a conditional of

    [Item]=="t2"

    Which caused the error. I'm not sure if it should have been single ' 's, or if it does not work with word variables, so I changed the item numbers of the training to 100 and 200, with the corresponding:

    [Item]==200

    as conditional.

    I'm not exactly sure why it then still gave an error with references to the audio file. But it seems to work now!

  • I've got the experiment to work locally in my browser, and on the JATOS test server of CogSci.

    I have been given access to a new JATOS server (I was using the server of a different faculty and now have been given access to my own faculty's server), but I was told that if my experiment uses any absolute paths, I'd have to put /j in front of any absolute paths. When I uploaded the experiment on that server, I could not start the experiment, I would just see a blank page. The console gave me these error messages (see screenshot):


    It's definitely not the complexity of my current experiment, I tried a short experiment on the server with just a couple of slides and that did not work either. So it probably has to do with the intended paths. Does anyone have a clue on how to fix this?


    Thanks

    Jelle

  • Sorry for spamming the forum with questions and finding the answers myself later.

    The JATOS server I was working on was situated in a subdomain of the main site, /j

    I had to change this in the .html file that the OSWeb zip file includes, by unzipping that file, changing the one absolute path and add the /j in front of it, and zip the directory folder and info.jas into a new zip folder (and not zipping the newly created folder which I did first, because then JATOS won't recognise the .zip file as a proper experiment).

  • Hi @JelleStudentRug ,


    Glad to hear everything worked out and thanks for sharing your solutions! :)


    Cheers,


    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

Sign In or Register to comment.