JsPsych Experiment Data Not Uploading to Pavlovia

jsPsych version: 7.3.4
jsPsychPavlovia version: 2021.12

Thanks in advance for helping me out. I’m running a jsPsych experiment on Pavlovia, which involves responding to audio stimuli and completing some survey questions. Everything went fine during piloting. The response data would download to my local machine upon finishing, and it looks fine.

I bought credits on Pavlovia, assigned them to the experiment and released them. I switched the results format from .csv to Database. However, whenever I run the experiment, the results will not upload to the Pavlovia server. Someone else tried to run the experiment and had the same issue.

The Pavlovia credits aren’t consumed by any of this. I still have the original number of credits I purchased.

The error that appears on the screen is:

[jspsych-pavlovia plugin 2021.12] Error

  • when uploading participant’ results for experiment: mahamilton/pop-experiment-final
  • error

When I inspect the console, I see the following message:

Failed to load resource: the server responded with a status of 500 ()

And also:

{“origin”: “https://pavlovia.org/api/v2/experiments/mahamilton/pop-experiment-final/sessions/23a70856-bc05-44ec-ad4e-68dc701a8fdd/results”, “context”: “when getting the results of experiment: mahamilton/pop-experiment-final/sessions/23a70856-bc05-44ec-ad4e-68dc701a8fdd”, “pathWithNamespace”: “mahamilton/pop-experiment-final/sessions/23a70856-bc05-44ec-ad4e-68dc701a8fdd”, “error”: “malformed request: expecting oauthToken”, “errorCode”: null, “httpStatusCode”: 400}

The “malformed request: expecting oauthToken” sticks out to me, but I’m a bit confused about what it means, especially since I have bought Pavlovia credits.

The code can be found here: Madeline Hamilton / Pop Experiment Final · GitLab

In the code, the legwork is done in “index.html”. The full experiment is an hour long, so I’ve commented most of it out. For now, I leave the trial variable definitions as is, but have commented out the commands that push most them to the timeline. The experiment right now just asks for the user’s Prolific ID and then skips to the final text screen.

I’ve tried playing around with the placement of the command that cuts connection with Pavlovia (pavlovia_finish). I put it at the very end of the timeline for now, but placing it elsewhere doesn’t seem to help.

Does anyone know what’s going on? Is there a setting or bug in my code that I’m missing?

Does this help?

Do you know what the user means by “text files”? They say:

“For posterity, the problem was special characters in my text files”.

Do they mean special characters used within their code?

Thank you