ropensci / qualtRics

Download ⬇️ Qualtrics survey data directly into R!
https://docs.ropensci.org/qualtRics
Other
215 stars 70 forks source link

400 error with getSurvey #17

Closed jakemsnyder closed 7 years ago

jakemsnyder commented 7 years ago

Error in qualtRicsResponseCodes(res) : Qualtrics API raised a bad request (400) error - Please report this on https://github.com/JasperHG90/qualtRics/issues

I get the error with both the main package and development version. Was working fine before I updated today, I think the last time I downloaded was late December. getSurveys works as intended.

jakemsnyder commented 7 years ago

Update: needed to fix the root_url to include /API/v3/. Now I get a 404 error, but I'm confident I have the correct survey ID. I tried multiple different IDs and still get the error.

JasperHG90 commented 7 years ago

Hey Jake,

Thanks for notifying me of this error. You don't need to append the '/API/v3/' part to the root url, as that is done by this function. Adding it twice causes the 403 error.

If I understand you correctly, you were able to retrieve the results for your survey before using the current version (0.3) of qualtRics available from CRAN, and that now both the CRAN version as well as the package version found on the master branch of this repository return this error? Does it return this error for all your surveys or just the one you're trying to retrieve?

The 400 response code occurs because something about the request is invalid. Could you post the exact command you're using here or PM it to me?

Thanks!

jakemsnyder commented 7 years ago

I have no idea what changed, but I just tried it again and it works fine now... Thank you for reaching out, but I'll close the issue since it's working again :) Appreciate the help!

JasperHG90 commented 7 years ago

Glad your issue sorted itself out!