Skip to content

Exceptions in api.log #144

@gwhitney

Description

@gwhitney

Shortly after installing commit bb21c37 in production (which involved wiping and reconstructing the database), the
api.log file in production contained

{"event": "Exception on /api/get_oeis_name_and_values/A000040 [GET]", "exc_info": ["<class 'sqlalchemy.exc
.IntegrityError'>", "IntegrityError('(psycopg2.errors.UniqueViolation) duplicate key value violates unique
 constraint \"sequences_pkey\"\\nDETAIL:  Key (id)=(A000040) already exists.\\n')", "<traceback object at 
0x7f9b57d46800>"], "timestamp": "2024-07-20T12:58:48.065590"}
{"event": "Exception on /api/get_oeis_name_and_values/A000040 [GET]", "exc_info": ["<class 'sqlalchemy.exc
.IntegrityError'>", "IntegrityError('(psycopg2.errors.UniqueViolation) duplicate key value violates unique
 constraint \"sequences_pkey\"\\nDETAIL:  Key (id)=(A000040) already exists.\\n')", "<traceback object at 
0x7f9b581ded40>"], "timestamp": "2024-07-20T12:58:48.065967"}

Maybe this is a transient condition, but even if so, these look like exceptions that should not be ocurring...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions