Skip to content

Dealing with large requests #128

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

Closed
dsweber2 opened this issue Jun 30, 2023 · 0 comments
Closed

Dealing with large requests #128

dsweber2 opened this issue Jun 30, 2023 · 0 comments
Labels
triage Should assign/revisit priority level, other tags

Comments

@dsweber2
Copy link
Contributor

Doing

chng_outpatient <- epidatr::covidcast(
  data_source = "chng", signals = "smoothed_adj_outpatient_covid",
  geo_type = "state",
  time_type = "day",
  time_values = "*",
  geo_values = "*",
  issues = "*"
)

resulted in a 504, probably because it took too long to get back; it worked fine for restricting issues to a month interval. Ways to address this:

  1. Expose whatever means httr has of increasing the wait time as a user input
  2. document any already existing way of doing this
  3. Split "*" requests into reasonable sized subsets and then do joins after to return what they asked for.
@dsweber2 dsweber2 added the triage Should assign/revisit priority level, other tags label Jun 30, 2023
@dsweber2 dsweber2 closed this as completed Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Should assign/revisit priority level, other tags
Projects
None yet
Development

No branches or pull requests

1 participant