You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, any time there's an error in the way the query is constructed, we're throwing generic 400 errors and providing the exact query url.
It might be more helpful if I customized these errors to get the actual text from the census API. This would mean that you'd get the "real" reason the error is thrown according to the census, rather than the generic HTTP status code, which is always 400 when an invalid query is run.
This would let users (like Yoonjung, who emailed @ljwolf about a 400 error relating to this query) see the error locally, and avoid incentivising going out of the notebook to open the website.
The text was updated successfully, but these errors were encountered:
+1 on this. I was "sure" that my failed query was due to picking the wrong database. Turns out that in 2017 GEOID is GEO_ID. Manually pasting the failed query into a web browser revealed my mistake.
Since the code already returns the failed URI, maybe a quick solution is to add some text to the output advising the user to paste the URI into a web browser to get details on the source of the failure. It didn't occur to me to do this until reading this issue.
Right now, any time there's an error in the way the query is constructed, we're throwing generic
400
errors and providing the exact query url.It might be more helpful if I customized these errors to get the actual text from the census API. This would mean that you'd get the "real" reason the error is thrown according to the census, rather than the generic HTTP status code, which is always 400 when an invalid query is run.
This would let users (like Yoonjung, who emailed @ljwolf about a 400 error relating to this query) see the error locally, and avoid incentivising going out of the notebook to open the website.
The text was updated successfully, but these errors were encountered: