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

csv api query returns 404 error #1846

Open
charlieeatonphd opened this issue Apr 7, 2021 · 9 comments
Open

csv api query returns 404 error #1846

charlieeatonphd opened this issue Apr 7, 2021 · 9 comments

Comments

@charlieeatonphd
Copy link

charlieeatonphd commented Apr 7, 2021

When you change an API query from .json such as:

https://api.data.gov/ed/collegescorecard/v1/schools.json?school.degrees_awarded.predominant=2,3&fields=id,school.name,2013.student.size&api_key=***

to .csv, such as:

https://api.data.gov/ed/collegescorecard/v1/schools.csv?school.degrees_awarded.predominant=2,3&fields=id,school.name,2013.student.size&api_key=***

you get the following error:

Oops! An Error Occurred

The server returned a "404 Not Found".

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

@brownpl
Copy link
Contributor

brownpl commented Apr 7, 2021

Thanks for reporting. I'll check into it and hopefully have a fix for it later this week.

@brownpl
Copy link
Contributor

brownpl commented Apr 7, 2021

I've added a csv option. It is currently posted to our beta endpoint - is that something you could use for testing? I am waiting to see if any other issues come in that I can batch with this update, and aim to update production this weekend.

The beta endpoint is https://api.data.gov/ed/collegescorecard/beta/v1/schools - your existing keys should work fine.

@charlieeatonphd
Copy link
Author

charlieeatonphd commented Apr 7, 2021 via email

@brownpl
Copy link
Contributor

brownpl commented Apr 8, 2021

Yes, there was a big API update on Sunday. The details are in the change log.

@brownpl
Copy link
Contributor

brownpl commented Apr 9, 2021

The .csv functionality should now be available for you on the main endpoint.

@charlieeatonphd
Copy link
Author

charlieeatonphd commented Apr 13, 2021 via email

@charlieeatonphd
Copy link
Author

charlieeatonphd commented Jul 7, 2021 via email

@brownpl
Copy link
Contributor

brownpl commented Jul 7, 2021

A few initial thoughts. The first one is no longer available, our beta endpoint has been removed and all the functionality that was previously there should be available on production (the second link).

I just ran a few tests with your second one - for some reason, I am getting an invalid response in Chrome, but if I run it in Safari (I'm on a mac) I am getting a CSV download. Are you accessing this via the browser or by some other method? If it is the browser, a quick stopgap solution could be to try a different one. In the meantime, I'll see what I can figure out around why Chrome is having issues, and do a pass over others to ensure they are working as expected, and I'll respond here when I sort it out.

@brownpl
Copy link
Contributor

brownpl commented Jul 23, 2021

After the data update last week, the export is appearing to work now as expected. I am not able to replicate the same issues with the invalid response. Please give it a shot and let me know if it remains an issue for you.

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

2 participants