Open colatkinson opened 7 years ago
Fixed short term in #62. We still need to actually handle the error gracefully, however. We probably need a UI element on the client side to just say "no videos found" when the server returns that condition. The server should just return an error JSON when null
is returned from a db query.
Somewhat related: Fixed error where server would also crash when database has only one video
When installing in a fresh environment, there is an unhandled problem when querying Counter finds no results. This results in
randomVideoID
attempting to access theseq
property of null, causing a fatal exception.I'd suggest several steps to handle this: