Hi JATOS users,
I'm working on a study in my local JATOS 3.1.6. I've run through the whole experiment and a number of individual components as a JATOS user (i.e. via the 'run' button in the GUI rather than a link). When I run one specific component, I'm getting the following errors in the console when it finishes:
Failed to load resource: the server responded with a status of 403 (Forbidden) http://127.0.0.1:9000/publix/1/5/resultData?srid=27
Bad Request: JATOS isn't allowed to run a study with the study result ID 27. Maybe it was closed automatically by JATOS because you started other studies in the same browser in the meantime.
Could it be that the result ID numbers are out of synch, i.e. the data is sent back with results ID = 27, but maybe the study has already ended for this ID, or the results already exist, or there's no record of it starting..? And could this be happening because this component was started without finishing (via either jatos.endStudy or jatos.startNextComponent)?
I'm not sure, but I think it's only an issue when the results sent with this line:
jatos.submitResultData(allData, jatos.endStudyAjax(false, 'HT_FAIL'));
(The above is called after a 'study ended' message is displayed because the participant didn't meet the criteria to continue.)
I'd appreciate any thoughts you might have on the source of this kind of error, and how to prevent and/or resolve it.
Thanks,
Becky