Skip to content

Server crashes when database is empty #54

@colatkinson

Description

@colatkinson

When installing in a fresh environment, there is an unhandled problem when querying Counter finds no results. This results in randomVideoID attempting to access the seq property of null, causing a fatal exception.

I'd suggest several steps to handle this:

  1. Handling this case on the server gracefully and returning an appropriate error
  2. Handling this case on the client, and show an interface stating that no videos were found
  3. Creating a script to add videos to the database for developers deploying the site

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions