Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated session_id #112

Open
tnguyenblurb opened this issue Jun 20, 2017 · 2 comments
Open

Duplicated session_id #112

tnguyenblurb opened this issue Jun 20, 2017 · 2 comments

Comments

@tnguyenblurb
Copy link

tnguyenblurb commented Jun 20, 2017

AFAIK, session_id should be unique so i did set unique for session_id but got the issue below. Could anyone here help me to explain why session_id is duplicated, is it related to concurrency and how to avoid this?
Status: 500 Internal Server Error
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "unique_session_id"
DETAIL: Key (session_id)=(addfsd48af9691df9ebb42863cac4234) already exists.
: INSERT INTO "sessions" ("session_id", "data", "updated_at", "user_id", "created_at") VALUES('addfsd48af9691df9ebb42863cac4234', 'secret data', '2017-06-19 16:07:58.759697', NULL, '2017-06-19 16:07:58.759697') RETURNING "id"

@tnguyenblurb tnguyenblurb changed the title Duplicate session_id Duplicated session_id Jul 11, 2017
@gfarias
Copy link

gfarias commented Dec 6, 2017

+1

1 similar comment
@tnguyenblurb
Copy link
Author

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants