Currently, I am trying to get a decision making task in jsPsych 6.2 to run on pavlovia. However, while the experiment itself runs fine, the data is not being saved on pavlovia. While the number of submissions goes up, the folder which should contain the csv files for the participants is empty when downloaded. When running the script locally or when including a local save in the pavlovia code, the data saves fine in the format of csv. I’ve now tried a bunch of different things to fix this, however, I’ve reached a bit of a limit for my level of jsPsych knowledge.
As the experiment was previously run through a different server system, the code still contains a lot of functions to communicate to that server. I have, as far as I can see, deactivated all those functions. So I am hoping that there is no issue with an overlapping communication or something similar, but then again, I might have overlooked something.
Secondly, the pavlovia plug in I am using is an old one I found with some previous experiment code. It seems to run fine with running the experiment but I am wondering if this is the issue with saving the data. One of the solutions would perhaps be to rewrite the whole code into version 7 or higher, however, there are a couple custom plug-ins which I would need to rewrite and I am hoping there might be a simpler solution.
I get a couple of warning/error messages at the end of the experiment which I am not quite sure how to deal with:
Loading failed for the with source “https://accounts.google.com/gsi/client”.
Uncaught (in promise) Error: Unable to preload CSS for /assets/FeatureUnderDevelopment-WmT6Xsm1.css
Loading failed for the with source “https://content.pendo.prolific.com/ag
Loading failed for the with source “https://api.kiprotect.com/v1/privacy-managers/45d9179def48e1744fa5188db10976b8/klaro.js”.
Loading failed for the with source “https://browser-update.org/update.min.js”.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://c.prolific.com/com.snowplowanalytics.snowplow/tp2. (Reason: CORS request did not succeed). Status code: (null).
Use of navigator.sendBeacon instead of synchronous XMLHttpRequest during unload and pagehide improves user experience.
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://clientstream.launchdarkly.com/eval/60f04be2cc470d24935cb9ad/eyJraW5kIjoidXNlciIsImtleSI6ImxvY2FsIiwiYW5vbnltb3VzIjp0cnVlfQ. (Reason: CORS request did not succeed). Status code: (null).
Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content.
However, none of these seem to block either the run of the experiment, the screen that says ‘Please wait a moment while we’re uplaoding the data to the pavlovia server’ or the redirect to prolific after.
I’ve put up a previous question about this but with a lot less detail but have not gotten a response so far. ’ve had a look at different data saving issues on the help forum as well but have unfortunately not found a solution to this yet. Therefore, I am trying again, hopefully with enough detail to allow someone to guess at what the problem is - my hope is still that this is a minor thing somewhere which I have just overlooked.
The project is this one: Pavlovia - but as it is not officialy running yet, there’s only a temp pilot here: pedlr-task (currently this is only the break of the experiment - I’ve run once through the whole thing and all of it works but for saving time I’ve shortenend this. There should also be data saved from this which it does for local saves.)