You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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: