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
Yesterday I was running pa11y-dashboard locally for debugging purposes, put the laptop to sleep with the dashboard still running, and today after I tried to use the dashboard I started getting the following errors:
Topology was destroyed: When trying, for example, to edit the details of a task (http://localhost:4000/5d33aae9c193490149107fa3/edit) the page will render correctly but Topology was destroyed will appear in the logs. Any attempt to access the DB will show this error. The app is unable to connect to the DB at all, which means that is in an unsafe/invalid state.
When in that state, trying to browse some of the pages (e.g. the home page) will generate an HTTP 500 error, but not all of them will.
We should probably catch these errors and make the app either re-attempt to connect to the DB, or bail out and crash, so any process management (e.g. pm2, forever, etc) can re-launch the app.
It may seem unlikely that users ever see this message but there's a chance this could happen if a running instance gets temporarily suspended (doesn't Heroku do something like this?) but, regardless, because it's good behaviour to catch these errors and try to recover or exit cleanly instead of being stuck in a permanent "HTTP 500" state.
The text was updated successfully, but these errors were encountered:
Yesterday I was running pa11y-dashboard locally for debugging purposes, put the laptop to sleep with the dashboard still running, and today after I tried to use the dashboard I started getting the following errors:
Topology was destroyed
: When trying, for example, to edit the details of a task (http://localhost:4000/5d33aae9c193490149107fa3/edit) the page will render correctly butTopology was destroyed
will appear in the logs. Any attempt to access the DB will show this error. The app is unable to connect to the DB at all, which means that is in an unsafe/invalid state.We should probably catch these errors and make the app either re-attempt to connect to the DB, or bail out and crash, so any process management (e.g. pm2, forever, etc) can re-launch the app.
It may seem unlikely that users ever see this message but there's a chance this could happen if a running instance gets temporarily suspended (doesn't Heroku do something like this?) but, regardless, because it's good behaviour to catch these errors and try to recover or exit cleanly instead of being stuck in a permanent "HTTP 500" state.
The text was updated successfully, but these errors were encountered: