Open Saikoneti-25 opened 1 month ago
Hello there, @Saikoneti-25! The most common source of this error is Qualtrics proxying your request. Do you see any messages about proxying? For example, what do you see when you run this at the command line (not in R)?
curl --request GET \
--url https://XXX.qualtrics.com/API/v3/whoami \
--header 'x-api-token: YOURLONGAPITOKENHERE'
You would need to use your URL and your API token. Do you see anything in the results like:
Notice: Request proxied. For faster response times, use this host instead:
Another thing you can try is to run this code to see a bit more detail about what is happening, with your survey ID:
fetch_url <- qualtRics::generate_url(query = "exportresponses", surveyID = "SV_83XXXXX")
raw_payload <- qualtRics:::create_raw_payload(
format = "csv",
useLabels = TRUE,
startDate = NULL,
endDate = NULL,
timeZone = NULL,
limit = NULL,
seenUnansweredRecode = NULL,
multiselectSeenUnansweredRecode = NULL,
includeDisplayOrder = TRUE,
questionIds = NULL,
embeddedDataIds = NULL,
surveyMetadataIds = NULL,
breakoutSets = NULL
)
res <- qualtRics:::qualtrics_api_request("POST", url = fetch_url, body = raw_payload)
res$meta
#> $requestId
#> [1] "88314239-93ac-43d6-a0d1-93180f4476b8"
#>
#> $httpStatus
#> [1] "200 - OK"
Created on 2024-07-31 with reprex v2.1.1