Watts-Lab / deliberation-empirica

Empirica V2 framework
MIT License
6 stars 0 forks source link

cypress test that data returns properly from qualtrics API fetch #555

Closed JamesPHoughton closed 1 year ago

JamesPHoughton commented 1 year ago

Occasionally see an error in passing tests that data wasn't successfully recovered from a qualtrics survey. This should fail the tests, and we should fix the data recovery code:

Error getting survey data from URL: 
https://iad1.qualtrics.com/API/v3/surveys/SV_cumihDjKknDL702/responses/R_1gRPCvuvJ5ld6L8 with config: {
[server]   headers: {
[server]     'X-API-TOKEN': '****',
[server]     'Content-Type': 'application/json'
[server]   }
[server] } [rd [AxiosError]: Request failed with status code 404] {
[server]   code: 'ERR_BAD_REQUEST',
[server]   config: {
[server]     transitional: {
[server]       silentJSONParsing: true,
[server]       forcedJSONParsing: true,
[server]       clarifyTimeoutError: false
[server]     }
JamesPHoughton commented 1 year ago

Completed here: https://github.com/Watts-Lab/deliberation-empirica/pull/659/files#diff-d255e08abc47b0b52aea454db14eaa97500665c5e57b539a7201f299126c6ce1R127-R130