You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using jsPsych to program my experiment and JATOS 3.8.1 to host it. There is one issue that has been troubling me for a long time since our IT uploaded JATOS from 3.7.x to 3.8.1: there are always 10%-20% of participants who complain that they are stuck on the screen while sending data, and it takes forever.
Initially, I send data to jatos after each trial using the function jatos.appendResultData. Then I noticed that the data would never be sent again once the participants lost internet connection for a few seconds (I replicated this issue by turning off Wi-Fi for a few seconds).
Since then, I have started using the jatos.submitResultData function to transfer data to the server. In addition, I also use the navigator.onLine function to check the status of the internet when transferring data to the server. The data will only be submitted when the navigator.onLine function returns true.
However, there are still always 5%-10% of participants who report the same issue, and I cannot replicate it on my own laptop. I wonder if there are any potential problems that may cause the issue. It would be greatly appreciated if you could give me some suggestions.
Here is the code that I am using to transfer data
//@ts-ignore submit results to JATOSjatos.submitResultData(resultJson)//@ts-ignore end the study.then(jatos.endStudyAjax(true,"FINISHED")).then(()=>{document.body.innerHTML=END_INFO.completedOnline[expInfo.LANG];}).catch((error)=>{console.error("Failed to submit the results to JATOS",error);});
The text was updated successfully, but these errors were encountered:
Hi,
I am using jsPsych to program my experiment and JATOS 3.8.1 to host it. There is one issue that has been troubling me for a long time since our IT uploaded JATOS from 3.7.x to 3.8.1: there are always 10%-20% of participants who complain that they are stuck on the screen while sending data, and it takes forever.
Initially, I send data to jatos after each trial using the function
jatos.appendResultData
. Then I noticed that the data would never be sent again once the participants lost internet connection for a few seconds (I replicated this issue by turning off Wi-Fi for a few seconds).Since then, I have started using the
jatos.submitResultData
function to transfer data to the server. In addition, I also use thenavigator.onLine
function to check the status of the internet when transferring data to the server. The data will only be submitted when thenavigator.onLine
function returnstrue
.However, there are still always 5%-10% of participants who report the same issue, and I cannot replicate it on my own laptop. I wonder if there are any potential problems that may cause the issue. It would be greatly appreciated if you could give me some suggestions.
Here is the code that I am using to transfer data
The text was updated successfully, but these errors were encountered: