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

Upload new report #1

Open
viniciusd opened this issue Dec 2, 2021 · 2 comments
Open

Upload new report #1

viniciusd opened this issue Dec 2, 2021 · 2 comments

Comments

@viniciusd
Copy link

viniciusd commented Dec 2, 2021

Hello there! Marking TA here

I am trying to test your API using automated scripts, but I cannot understand how your upload endpoint should work.

I have tried it in many ways, but I keep getting error 500 from your API.

Should it be a POST request with a body whose key is always the fixed value csv_file and the value is the uploaded file?

It would be helpful if you could get me the traceback for the error as well.

@viniciusd
Copy link
Author

viniciusd commented Dec 2, 2021

Currently, I am trying:

curl -F '[email protected]' 'http://ec2-54-202-56-60.us-west-2.compute.amazonaws.com/api/dates/'

With the following file: 06-05-2020.csv

And getting 500.

@edit

It is working now

@viniciusd
Copy link
Author

Getting 500 with the following:

curl -X POST 'http://ec2-54-202-56-60.us-west-2.compute.amazonaws.com/api/dates/filter_dates/' --data '{"date_from": "04/05/21", "date_to": "05/05/21", "format": "CSV", "titles": ["active", "confirmed", "deaths", "recovered"]}'

It seems to be complaining about titles, but I think I am following your instructions in the README. Please let me know how it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant