-
Notifications
You must be signed in to change notification settings - Fork 189
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
Comments
+1 |
1 similar comment
+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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"
The text was updated successfully, but these errors were encountered: