antonioribeiro / antonioribeiro/tracker

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry for key 'tracker_cookies_uuid_unique'

Open
#323 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
2.9k
Forks
594
PR merge metrics
No merged PRs in 30d

Description

I'm getting this issue when a user is visiting the same page multiple times. Any ideas for how to fix?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing repeated visits to the same page and tracing the handling of the tracker_cookies_uuid_unique constraint named in the error. Identify the insert or update path involved; done means repeated visits no longer raise SQLSTATE[23000] while cookie tracking continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
laravel, php
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.