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

Hubspot cookie data handled incorrectly for user that already has one #4900

Closed
sentry-io bot opened this issue Dec 9, 2024 · 0 comments · Fixed by #4905
Closed

Hubspot cookie data handled incorrectly for user that already has one #4900

sentry-io bot opened this issue Dec 9, 2024 · 0 comments · Fixed by #4905
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Dec 9, 2024

Sentry Issue: FLAGSMITH-API-51F

HubspotTracker.DoesNotExist: HubspotTracker matching query does not exist.
  File "django/db/models/query.py", line 916, in get_or_create
    return self.get(**kwargs), False
  File "django/db/models/query.py", line 637, in get
    raise self.model.DoesNotExist(

UniqueViolation: duplicate key value violates unique constraint "users_hubspottracker_hubspot_cookie_key"
DETAIL:  Key (hubspot_cookie)=(d4b2f190eb2d2072670294dda413d8e2) already exists.

  File "django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)

IntegrityError: duplicate key value violates unique constraint "users_hubspottracker_hubspot_cookie_key"
DETAIL:  Key (hubspot_cookie)=(d4b2f190eb2d2072670294dda413d8e2) already exists.

(21 additional frame(s) were not displayed)
...
  File "organisations/views.py", line 116, in create
    register_hubspot_tracker(request)
  File "integrations/lead_tracking/hubspot/services.py", line 24, in register_hubspot_tracker
    HubspotTracker.objects.update_or_create(
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

Successfully merging a pull request may close this issue.

1 participant