You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
surveys <- getSurveys(root_url="https://ohio.qualtrics.com")
Error in do.call(rbind.data.frame, content(res)$result$elements) :
second argument must be a list
Any idea what could be going on here, Jasper?
The text was updated successfully, but these errors were encountered:
getSurveys() queries the API, which then returns a list of survey IDs and other information.
do.call() recursively applies rbind.data.frame() to this list such that the function returns a data frame with survey information.
This error means that the second argument passed to do.call() (in this case, the list of survey information) is not a list. Most likely, its value is NULL. This happens because the Qualtrics API does not return a list of surveys for some reason, for example because your authentication with the API fails.
Please check the following:
You have access to the Qualtrics API and you have a valid API key
You have passed a valid API key to registerApiKey()
Please re-run this function without a specific root url and check the results.
I will update the error message such that it is more informative.
Thanks Jasper; might be something to do with access rights at my institution since using qualtrics' API documentation page to test my API token throws a 401 error.
registerApiKey("mytoken")
[1] TRUE
Any idea what could be going on here, Jasper?
The text was updated successfully, but these errors were encountered: