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

Sometimes too long custom_id field #1

Open
ahnl opened this issue Oct 28, 2021 · 0 comments
Open

Sometimes too long custom_id field #1

ahnl opened this issue Oct 28, 2021 · 0 comments

Comments

@ahnl
Copy link
Member

ahnl commented Oct 28, 2021

A mail will not be delivered to Discord when value of custom_id exceeds 100 characters. Thecustom_id field contains base64 encoded from and to values of an email.

A solution could be to save from and to values in the database, and point custom_id to the database row.

Reproduction

  1. Send an email to thisisaverylongemailaddress+yourmailbox@koira.testausserveri.fi
  2. Following error will occur and mail will not be delivered to Discord
app_1  | DiscordAPIError: Invalid Form Body
app_1  | components[0].components[0].custom_id: Must be 100 or fewer in length.
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

No branches or pull requests

1 participant