Closed bjsmith closed 2 years ago
update: encoding the URL with URLencode
changes the problem, and you get the error:
Error in `qualtrics_response_codes()`:
! Qualtrics API complains that the requested resource cannot be found (404 error).
Please check if you are using the correct survey ID.
Run `rlang::last_error()` to see where the error occurred.
Hi Ben, fetch_survey
is expecting the survey ID, not its name. It should be a string starting with "SV_" followed by a unique alphanumeric ID.
This code should work:
fetch_survey(surveyID=surveysAvail[[59,"id"]])
The mistake mine--using the survey ID instead of the survey name. My mistake. survey ID is correctly documented as the value to use.
just saw your comment as I commented. Thanks @kevintroy
I am getting a
curl
url error occurring with fetch_survey() but not with all_surveys().First I load my credentials:
Then I try to access the survey. I get surveys come back.
On inspection, the data looks great. So all good to go, right?
I have tried this with entering in the survey's name rather than referring to a cell in the the surveysAvail dataframe. No difference.
It's odd to see that the baseurl and credentials work for retrieving surveys, but there is a URL error for
fetch_survey
.Any suggested fixes?