ropensci / qualtRics

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

Unable to pull individual survey #229

Closed dzaveta closed 2 years ago

dzaveta commented 3 years ago

Hello, I am able to run all_surveys() and can get a table of my surveys however I am unable to pull an individual survey using fetch_survey(). Below is my reprex output. Thank you so much.

library(qualtRics)

qualtrics_api_credentials(api_key= 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
                          base_url= 'XXXXXXXXXXXXXXXXXX.qualtrics.com',
                          install= TRUE)
#> Error: Qualtrics credentials already exist. You can overwrite them with the argument overwrite=TRUE

readRenviron("~/.Renviron")

surveys<- all_surveys()
#> Warning in check_for_warnings(cnt): Request proxied. For faster response times,
#> use this host instead: sjc1.qualtrics.com

test<-fetch_survey(surveyID = surveys$id[111])
#> Error in qualtrics_response_codes(res): Qualtrics API raised a bad request (400) error - Please report this on
#> https://github.com/ropensci/qualtRics/issues

Created on 2021-09-09 by the reprex package (v2.0.1)

juliasilge commented 3 years ago

Looks like this is related #211

Can you walk through the debugging I outline in that issue and make sure it is the same? If so, I believe this is a problem with the API itself; I don't see how we can address this. 😔

dzaveta commented 3 years ago

Thanks for checking. Yes, I ended up with similar results to #211

juliasilge commented 3 years ago

OK, I recommend that you pursue this with Qualtrics, because I am still pretty sure it is not something happening with the R package but rather the API itself. I would create an example showing your curl result (the "Request proxied" bit) and post it on Qualtrics' API discussion section and also reach out to support.

If you hear something back that sounds like something we can fix, please do let me know.

juliasilge commented 2 years ago

Let us know if you have any luck! 🙌