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

Add maximum length to subject #3481

Open
sentry-io bot opened this issue Sep 23, 2024 · 0 comments
Open

Add maximum length to subject #3481

sentry-io bot opened this issue Sep 23, 2024 · 0 comments
Labels
Module: Outbound Email Processing, sending, tracking, and analyzing emails after they've been rendered. Type: Ergonomics Improvements to the existing user experience.

Comments

@sentry-io
Copy link

sentry-io bot commented Sep 23, 2024

Sentry Issue: APPLICATION-BACKEND-6TF

ProgramLimitExceeded: index row size 3736 exceeds btree version 4 maximum 2704 for index "emails_email_subject_idx"
DETAIL:  Index row references tuple (3883,3) in relation "emails_email".
HINT:  Values larger than 1/3 of a buffer page cannot be indexed.
Consider a function index of an MD5 hash of the value, or use full text indexing.

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

OperationalError: index row size 3736 exceeds btree version 4 maximum 2704 for index "emails_email_subject_idx"
DETAIL:  Index row references tuple (3883,3) in relation "emails_email".
HINT:  Values larger than 1/3 of a buffer page cannot be indexed.
Consider a function index of an MD5 hash of the value, or use full text indexing.

(17 additional frame(s) were not displayed)
...
  File "api/views/emails/routes.py", line 461, in update_email
    instance.save(update_fields=changed_values)
  File "emails/models/email/model.py", line 397, in save
    return super().save(*args, **kwargs)
@jmduke jmduke changed the title Add maximum length to subejct Add maximum length to subject Sep 24, 2024
@jmduke jmduke added Type: Ergonomics Improvements to the existing user experience. Module: Outbound Email Processing, sending, tracking, and analyzing emails after they've been rendered. labels Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: Outbound Email Processing, sending, tracking, and analyzing emails after they've been rendered. Type: Ergonomics Improvements to the existing user experience.
Projects
Status: Not started
Development

No branches or pull requests

1 participant