# Error when downloading results #pavolvia

**URL:** <https://discourse.psychopy.org/t/error-when-downloading-results-pavolvia/24070>\
**Category:** Online experiments\
**Tags:** pavlovia\
**Created:** [July 16, 2021, 1:49am UTC](https://discourse.psychopy.org/t/error-when-downloading-results-pavolvia/24070 "2021-07-16T01:49:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Katharina\_Voigt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/katharina_voigt/32/30296_2.png) [@Katharina\_Voigt](https://discourse.psychopy.org/u/Katharina_Voigt)\
**Post date:** [July 16, 2021, 1:49am UTC](https://discourse.psychopy.org/t/error-when-downloading-results-pavolvia/24070/1 "2021-07-16T01:49:23Z")

</div>

Description of the problem:  
Hi, I’m getting the following error when I want to download my results from the pavlovia database (see below). The experiment is in running mode and uses jspsych as platform. What is the issue?

_{“origin”:“[http://pavlovia.org/api/v2/experiments/Voigt/aversion\_visual\_task/results",“context”:"when](http://pavlovia.org/api/v2/experiments/Voigt/aversion_visual_task/results%22,%22context%22:%22when) getting the results of an experiment”,“pathWithNamespace”:“Voigt/aversion\_visual\_task”,“experiment”:{“gitlabId”:143704,“avatarUrl”:"",“creationDate”:“2021-06-15 05:48:42.220”,“creatorId”:17259,“description”:"",“gitlabUrl”:“[Sign in · GitLab](https://gitlab.pavlovia.org/Voigt/aversion_visual_task.git%22,%22name%22:%22aversion_visual_task%22,%22nbForks%22:0,%22nbStars%22:0,%22pathWithNamespace%22:%22Voigt/aversion_visual_task%22,%22pavloviaScore%22:0,%22pavloviaUrl%22:%22https://run.pavlovia.org/Voigt/aversion_visual_task%22,%22platform%22:%22JSPSYCH%22,%22recruitment%22:%7B%22policy%22:%7B%22type%22:%22URL%22,%22url%22:%22https://run.pavlovia.org/Voigt/aversion_visual_task%22,%22singleRun%22:false%7D%7D,%22runMode%22:%22CREDIT%22,%22saveFormat%22:%22DATABASE%22,%22saveIncompleteResults%22:true,%22status%22:%22INACTIVE%22,%22status2%22:%22RUNNING%22,%22updateDate%22:%222021-07-16) 00:48:09”,“userIds”:[17259],“version”:“6.0.0”,“visibility”:“private”,“nbSessions”:7},“isOwnedByUser”:true,“error”:“error when preparing the result archive, exitStatus: 3072”,“errorCode”:null,“httpStatusCode”:500}_

If the error persists, contact Pavlovia’s administrator.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/0/2/02ff911c8410e2a915e4428623e872f77d9c0eb9.jpeg)

I’m struggling to find an unsupported character on line 1, column 12 of data

“rt”,“responses”,“trial\_type”,“trial\_index”,“time\_elapsed”,“internal\_node\_id”,“subject”,“Trial\_Name”,“view\_history”,“stimulus”,“key\_press”,“Trial\_ID”,“Trial\_Type”,“Gain”,“Loss”,“Certain”,“Trial\_Outcome”

or If that is line0, line 1 will be:

“16947.305000001506”,"{"“ID”":"“PAZA87"”}",“survey-text”,“0”,“16951”,“0.0-0.0”,“PAZA87”,“Initial Prompts”,"","","","","","","","",""

column 12 is a number

Even the curly brackets are wrapped around “”

---

<div class="post-metadata">

**Author:** ![thomas\_pronk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/thomas_pronk/32/9531_2.png) [@thomas\_pronk](https://discourse.psychopy.org/u/thomas_pronk)\
**Post date:** [July 16, 2021, 11:15am UTC](https://discourse.psychopy.org/t/error-when-downloading-results-pavolvia/24070/2 "2021-07-16T11:15:01Z")

</div>

Hey! Could you share your gitlab repo with me (tpronk) so I can take a look at the code? See [Searching for experiments on Pavlovia — PsychoPy v2021.2](https://psychopy.org/online/sharingExperiments.html#adding-a-team-member)

---

<div class="post-metadata">

**Author:** ![Katharina\_Voigt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/katharina_voigt/32/30296_2.png) [@Katharina\_Voigt](https://discourse.psychopy.org/u/Katharina_Voigt)\
**Post date:** [July 17, 2021, 3:10am UTC](https://discourse.psychopy.org/t/error-when-downloading-results-pavolvia/24070/4 "2021-07-17T03:10:12Z")

</div>

@thomas_pronk I’ve just shared the code with you. Thanks so much for taking the time!

---

<div class="post-metadata">

**Author:** ![thomas\_pronk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/thomas_pronk/32/9531_2.png) [@thomas\_pronk](https://discourse.psychopy.org/u/thomas_pronk)\
**Post date:** [July 17, 2021, 12:01pm UTC](https://discourse.psychopy.org/t/error-when-downloading-results-pavolvia/24070/5 "2021-07-17T12:01:30Z")

</div>

I got a notification that you made me a Guest, but I’ll need a role with more permissions than that; see guide I sent earlier

---

<div class="post-metadata">

**Author:** ![Katharina\_Voigt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/katharina_voigt/32/30296_2.png) [@Katharina\_Voigt](https://discourse.psychopy.org/u/Katharina_Voigt)\
**Post date:** [July 18, 2021, 11:43pm UTC](https://discourse.psychopy.org/t/error-when-downloading-results-pavolvia/24070/6 "2021-07-18T23:43:26Z")

</div>

thanks @thomas_pronk . You are now a developer.

---

<div class="post-metadata">

**Author:** ![Katharina\_Voigt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/katharina_voigt/32/30296_2.png) [@Katharina\_Voigt](https://discourse.psychopy.org/u/Katharina_Voigt)\
**Post date:** [July 19, 2021, 9:20am UTC](https://discourse.psychopy.org/t/error-when-downloading-results-pavolvia/24070/7 "2021-07-19T09:20:57Z")

</div>

The first couple of lines of data obtained from experiment in json format is:

“[{“trial\_type”:“pavlovia”,“trial\_index”:0,“time\_elapsed”:2746,“internal\_node\_id”:“0.0-0.0”,“subject”:“parisaz87test”},{“rt”:10972.60000000149,“responses”:”{\“Q0\”:\“parisaz87test\”}",“trial\_type”:“survey-text”,“trial\_index”:1,“time\_elapsed”:13720,“internal\_node\_id”:“0.0-1.0”,“subject”:“parisaz87test”,“Trial\_Name”:“Initial Prompts”},{“view\_history”:"[{\“page\_index\”:0,\“viewing\_time\”:939.9000000003725},{\“page\_index\”:1,\“viewing\_time\”:1420.0999999996275},{\“page\_index\”:2,\“viewing\_time\”:882},{\“page\_index\”:3,\“viewing\_time\”:1025.5999999996275},{\“page\_index\”:4,\“viewing\_time\”:3812.199999999255},{\“page\_index\”:5,\“viewing\_time\”:471.6000000014901},{\“page\_index\”:6,\“viewing\_time\”:554.2999999988824},{\“page\_index\”:7,\“viewing\_time\”:552},{\“page\_index\”:8,\“viewing\_time\”:1026.0999999996275}]",“rt”:10684.599999999627,“trial\_type”:“instructions”,“trial\_index”:2,“time\_elapsed”:24407,“internal\_node\_id”:“0.0-2.0”,“subject”:“parisaz87test”,“Trial\_Name”:“Instructions”},{“success”:true,“trial\_type”:“fullscreen”,“trial\_index”:3,“time\_elapsed”:26711,“internal\_node\_id”:“0.0-3.0”,“subject”:“parisaz87test”},{“view\_history”:"[{\“page\_index\”:0,\“viewing\_time\”:5512.0999999996275}]",“rt”:5512.4000000003725,“trial\_type”:“instructions”,“trial\_index”:4,“time\_elapsed”:32224,“internal\_node\_id”:“0.0-4.0”,“subject”:“parisaz87test”},{“rt”:null,“key\_press”:null,“trial\_type”:“canvas-keyboard-response”,“trial\_index”:5,“time\_elapsed”:34229,“internal\_node\_id”:“0.0-5.0-0.0”,“subject”:“parisaz87test”,“gamble\_location”:“gamble\_left”,“Trial\_Name”:“Visual Trial”},{“rt”:null,“stimulus”:" “,“key\_press”:null,“trial\_type”:“html-keyboard-response”,“trial\_index”:6,“time\_elapsed”:35233,“internal\_node\_id”:“0.0-5.0-1.0”,“subject”:“parisaz87test”,“Trial\_Name”:“ISI”},{“rt”:null,“stimulus”:“Trial missed.”,“key\_press”:null,“trial\_type”:“html-keyboard-response”,“trial\_index”:7,“time\_elapsed”:37236,“internal\_node\_id”:“0.0-5.0-2.0”,“subject”:“parisaz87test”,“Trial\_Name”:“Feedback”,“Trial\_ID”:121,“Trial\_Type”:2,“Gain”:4,“Loss”:0,“Certain”:2,“Trial\_Outcome”:3},{“rt”:null,“stimulus”:” ",“key\_press”:null,“Trial\_Name”:“ITI”,“trial\_type”:“html-keyboard-response”,“trial\_index”:8,“time\_elapsed”:38240,“internal\_node\_id”:“0.0-5.0-3.0”,“subject”:“parisaz87test”},

---

<div class="post-metadata">

**Author:** ![thomas\_pronk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/thomas_pronk/32/9531_2.png) [@thomas\_pronk](https://discourse.psychopy.org/u/thomas_pronk)\
**Post date:** [July 19, 2021, 9:38am UTC](https://discourse.psychopy.org/t/error-when-downloading-results-pavolvia/24070/8 "2021-07-19T09:38:05Z")

</div>

Hey again,

I forked your experiment and set it up such that the practice and main block only had one trial. Then I took part a couple of times. Each time the task redirected correctly to Qualtrics and the data got stored without any error message. So I’m afraid “it works on my machine” :). I do have some pointers though that could help us find and fix this bug:

1. **About your pavlovia plugin.** I see you’re using a relatively old version of the Pavlovia plugin. For newer versions, see [this thread on our forum](https://discourse.psychopy.org/t/jspsych-saving-options-on-pavlovia/12880/24) or [this thread on the jsPsych forum](https://github.com/jspsych/jsPsych/discussions/1738)
2. **About reproducing the bug.** If the above doesn’t solve it, we’ll need to do some targeted debugging. Given that I did get it to work but you didn’t, we’ll need to find out what’s different. Perhaps there are certain responses that give an issue? Maybe it’s the sheer size of the JSON? Doing some dedicated test-runs, perhaps in part with shortened versions of your experiment, could help pinpoint the cause.
3. **About finding the consequence of the bug.** I noticed that the JSON you (at one point) copy-pasted above contains characters typically introduced by a text editor, such as Word. There are [web-sites](https://jsonlint.com/) that can validate JSON and tell you where any issues lie. However, be sure that you copy-paste the JSON directly into that site, or, if you want to store it, only use plain text editors like Notepad. On this forum you can force plain text using one or three backticks (button at the top-left of your keyboard).

Hope this helps! Thomas

---

<div class="post-metadata">

**Author:** ![Katharina\_Voigt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/katharina_voigt/32/30296_2.png) [@Katharina\_Voigt](https://discourse.psychopy.org/u/Katharina_Voigt)\
**Post date:** [July 20, 2021, 3:34am UTC](https://discourse.psychopy.org/t/error-when-downloading-results-pavolvia/24070/9 "2021-07-20T03:34:03Z")

</div>

We did use the json validator website and the data is indeed valid JSON format.  
Regarding shortening the experiment and/or upgrading the Pavlovia, rerunning and seeing if the data gets uploaded to server, is there anyway this can be done without using my CREDIT?

---

<div class="post-metadata">

**Author:** ![thomas\_pronk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/thomas_pronk/32/9531_2.png) [@thomas\_pronk](https://discourse.psychopy.org/u/thomas_pronk)\
**Post date:** [July 20, 2021, 9:47am UTC](https://discourse.psychopy.org/t/error-when-downloading-results-pavolvia/24070/10 "2021-07-20T09:47:48Z")

</div>

I’ll ask around for the latter. About the former: so have you had a case where the data sent to Pavlovia was considered valid by a validator, but rejected by Pavlovia saying “unable to JSON decode”? If so, could I see the whole JSON string?
