Skip to content
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 agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulling all data for multiple states causes error #60

Open
ryan-hill opened this issue Feb 21, 2025 · 0 comments
Open

Pulling all data for multiple states causes error #60

ryan-hill opened this issue Feb 21, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ryan-hill
Copy link
Collaborator

The code below causes an error if I pull too many variables at a time.

sc_names <- sc_get_params('name')[1:600] %>%
paste(collapse = ',')

sc_get_data(metric = sc_names,
state = '2509407',
aoi = 'ws')

Error in httr2::req_perform():
! HTTP 400 Bad Request.
Run rlang::last_trace() to see where the error occurred.

Fewer variables but more locations also causes the error:
sc_names <- sc_get_params('name')[1:300] %>%
paste(collapse = ',')

sc_get_data(metric = sc_names,
comid = 'KY,TN,NC,SC,GA,AL,MS,FL',
aoi = 'ws')

@ryan-hill ryan-hill added the bug Something isn't working label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants