Skip to content

Unique constraint teams_github_id_key violated #625

Closed
@alexcrichton

Description

@alexcrichton

Saw some log messages last night:

 Mar 13 14:37:31 crates-io app/web.2: ERROR:conduit_log_requests: 127.0.0.1:36656 [2017-03-13T21:37:31Z] Put /api/v1/crates/unbase/owners - 982ms 500: Error reported by Postgres Error reported by Postgres: ERROR: duplicate key value violates unique constraint "teams_github_id_key"

Mar 13 14:37:40 crates-io app/web.2: ERROR:conduit_log_requests: 127.0.0.1:36799 [2017-03-13T21:37:40Z] Put /api/v1/crates/unbase/owners - 547ms 500: Error reported by Postgres Error reported by Postgres: ERROR: duplicate key value violates unique constraint "teams_github_id_key"

Mar 13 14:37:58 crates-io app/web.2: ERROR:conduit_log_requests: 127.0.0.1:37307 [2017-03-13T21:37:58Z] Put /api/v1/crates/unbase/owners - 1347ms 500: Error reported by Postgres Error reported by Postgres: ERROR: duplicate key value violates unique constraint "teams_github_id_key"

Mar 13 14:38:15 crates-io app/web.1: ERROR:conduit_log_requests: 127.0.0.1:49664 [2017-03-13T21:38:14Z] Put /api/v1/crates/unbase/owners - 935ms 500: Error reported by Postgres Error reported by Postgres: ERROR: duplicate key value violates unique constraint "teams_github_id_key"

Mar 13 14:38:18 crates-io app/web.1: ERROR:conduit_log_requests: 127.0.0.1:49741 [2017-03-13T21:38:18Z] Put /api/v1/crates/unbase/owners - 508ms 500: Error reported by Postgres Error reported by Postgres: ERROR: duplicate key value violates unique constraint "teams_github_id_key"

Mar 13 14:42:28 crates-io app/web.1: ERROR:conduit_log_requests: 127.0.0.1:54280 [2017-03-13T21:42:27Z] Put /api/v1/crates/unbase/owners - 215ms 500: Error reported by Postgres Error reported by Postgres: ERROR: duplicate key value violates unique constraint "teams_github_id_key"

Mar 13 14:42:53 crates-io app/web.2: ERROR:conduit_log_requests: 127.0.0.1:46557 [2017-03-13T21:42:53Z] Put /api/v1/crates/unbase/owners - 237ms 500: Error reported by Postgres Error reported by Postgres: ERROR: duplicate key value violates unique constraint "teams_github_id_key" 

We should give a better error than a 500 internal error!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions