-
Notifications
You must be signed in to change notification settings - Fork 71
checkarg_time_zone()
should use allowed values from Qualtrics API instead of base::OlsonNames()
#365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agr 8000 ee to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hi again Julia! I don't know what happened but I randomly ran the fetch_survey function this morning and it seems like it is working for me now? I checked to see if I was doing anything differently and the only difference I can see is that I was using library(qualtRics)
#> Warning: package 'qualtRics' was built under R version 4.4.3
# Step 4 - List all surveys
surveys <- all_surveys()
# Step 5 - Set time zone
Sys.setenv(TZ = "EST")
# Step 6 - Select surveys to be downloaded
mysurveys <-fetch_survey(surveyID = "SV_XXX")
#> Error in `qualtrics_response_codes()`:
#> ! Qualtrics API reported a bad request error (400):
#> • Please report this on https://github.com/ropensci/qualtRics/issues Created on 2025-03-25 with reprex v2.1.1 But when I don't run the library(qualtRics)
#> Warning: package 'qualtRics' was built under R version 4.4.3
# Step 4 - List all surveys
surveys <- all_surveys()
# Step 6 - Select surveys to be downloaded
mysurveys <-fetch_survey(surveyID = "SV_XXXX")
#> | | | 0% | |======================================================================| 100%
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> .default = col_character(),
#> StartDate = col_datetime(format = ""),
#> EndDate = col_datetime(format = ""),
#> Progress = col_double(),
#> `Duration (in seconds)` = col_double(),
#> Finished = col_logical(),
#> RecordedDate = col_datetime(format = ""),
#> RecipientLastName = col_logical(),
#> RecipientFirstName = col_logical(),
#> RecipientEmail = col_logical(),
#> ExternalReference = col_logical(),
#> LocationLatitude = col_double(),
#> LocationLongitude = col_double()
#> )
#> ℹ Use `spec()` for the full column specifications.
# Step 7 - Save responses to a csv file
write.csv(mysurveys, file = "baseline_survey.csv", row.names = FALSE) Created on 2025-03-25 with reprex v2.1.1 I still don't know why this made such a huge difference but the |
Ah, amazing job on figuring it out! 🙌 Looks like that is not one of the allowed timezone strings for the Qualtrics API: When we check the timezone here, we should use the allowed timezone strings from the API instead of Line 183 in 97f1d1a
|
qualtrics_response_codes()
: ! Qualtrics API reported a bad request error (400):checkarg_time_zone()
should use allowed values from Qualtrics API instead of base::OlsonNames()
Thank you for all your help! |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I am trying to download surveys from Qualtrics and have been able to connect to the API using my token and base URL (I'm guessing this on the basis of all_surveys() working with no errors).
However, the fetch_surveys does not seem to be working for me when trying to download any surveys. I get this error message:
Running rlang::last_trace(drop = FALSE) gives me the following:
I have been going over some of the previously closed issues with similar error messages and have tried all the alternatives I can find.
I Googled this and got another format of this command to try and got this as a result, which I am assuming means things are okay on this end and my request is not getting proxied?
I've tried figuring out what else could possibly be wrong but I have hit a wall at this point! Can you tell me why this is happening and/or what can I do to fix this?
I am a beginner to coding (and R!) so I am afraid I don't understand most of this other than what my searches on Google provide and so I apologize if there any obvious things I missed!
The text was updated successfully, but these errors were encountered: