Skip to content
This repository was archived by the owner on Jan 7, 2020. It is now read-only.

csv downloads aren't working #62

Closed
omnipresent07 opened this issue Jun 29, 2019 · 0 comments · Fixed by #83
Closed

csv downloads aren't working #62

omnipresent07 opened this issue Jun 29, 2019 · 0 comments · Fixed by #83

Comments

@omnipresent07
Copy link
Contributor

omnipresent07 commented Jun 29, 2019

While trying to download the CSV file for nationwide, or a large state, the UI gives error Failed to load resource: net::ERR_INCOMPLETE_CHUNKED_ENCODING, however, the API successfully returns the data at this endpoint https://<dev_server>/v2/data-browser-api/view/nationwide/csv

Since the data being returned is quite big, the API is returning the data in a streaming fashion. The front end should call the streaming API accordingly. cURL can be used to stream the data like this:

curl -X GET 'https://<devserver>/v2/data-browser-api/view/csv?states=CA,MD,DC' >> ca_md_dc.csv
or
curl -X GET 'https://<devserver>/v2/data-browser-api/view/nationwide/csv' >> nationwide.csv

@omnipresent07 omnipresent07 changed the title nationwide/csv download isn't working csv downloads aren't working Jun 30, 2019
@wpears wpears mentioned this issue Jul 6, 2019
@wpears wpears closed this as completed in #83 Jul 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant