-
Notifications
You must be signed in to change notification settings - Fork 46
Missing data leads to an explosion #485
Comments
@cmc333333, is this by any chance the same issue as a stack trace being thrown on the server regarding a
If so, we're seeing this some in |
Hey @ccostino -- it's certainly possible. Is the database populated? In particular, this is trying to access meta data about a specific regulation. |
The database is populated, but this happens when hitting, e.g., https://www.fec.gov/regulations/104-8/2017-annual-104 or https://www.fec.gov/regulations/110-8/2017-annual-110 |
Turns out the database is not populated with 2017 data, hence the reason why. Thanks @cmc333333! FWIW we have an open issue to account for error handling in these situations on the |
And I now realize that the change has to happen here; the only thing we can do on the |
The error is taking place in the If there's a better place for capturing any error that occurs during the view processing and handling it there, that would seem ideal to me. Going over the documentation for the |
@ccostino I think we probably want to raise a 404 as soon as we see the
|
Ah good point, thanks for explaining that @cmc333333! |
- Addresses issue eregs#485: Missing data leads to an explosion - Also addresses FEC issue: fecgov/fec-eregs#385 - Throw a 404 error when navigating to a regulation that doesn't exist - Previously, the `utils.regulation_meta` function was returning `{}`, so accessing the 'meta' data was resulting in a 500 error
This issue is addressed by #515. Thank you @cmc333333 and @ccostino for your help! |
We need a friendlier "there's no data" message. Right now the page just explodes...
The text was updated successfully, but these errors were encountered: