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
Supabase returns an error "Failed to validate template: content must be shorter than or equal to 5000 characters," although the email template I am using does not exceed this limit. The template is about 3700 characters, and even when minified, it reaches only 2088 characters. This issue appears to be a false positive on the character limit validation.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Steps to reproduce the behavior:
Create an email template with approximately 3700 characters.
Minify the template to reduce character count.
Attempt to save or use the template within Supabase.
Observe the error stating the content exceeds 5000 characters.
I have added one of my email templates to reproduce the issue
Expected behavior
The template should save successfully without triggering the character limit validation error, as it does not exceed the 5000-character limit. It worked already for the last months but it just stopped working, the last email I got has been received 2 days ago.
Screenshots
Network Traffic (comes from spam protection?)
Error notification when navigating to another email template:
Browser: Tested on both, Microsoft Edge and Mozilla Firefox
Additional context
This issue occurs even after minifying the template. The problem suggests that the character count validation may not be accurately calculated on Supabase's end, potentially counting whitespace or other formatting redundantly. The error is new, as similar templates with similar character counts previously saved without issues.
One of my used email templates is attached. Thanks for your support!
After further investigation, including both front-end and backend code analysis within the Supabase codebase, no configurations or validation constants defining a 5000-character limit have been identified. This suggests the character limit may be enforced at a deeper level within Supabase's backend infrastructure or as a recent change not reflected in the public codebase.
Thank you for your assistance, and please let me know if further testing or details would be useful!
Hi @nicokempe, thanks for the report! We'll be increasing the max content length for the template validation api. This limit is in place to protect our api service.
Rest assured, there's no limit on the template length, so this error won't prevent you from saving the template.
Bug report
Describe the bug
Supabase returns an error "Failed to validate template: content must be shorter than or equal to 5000 characters," although the email template I am using does not exceed this limit. The template is about 3700 characters, and even when minified, it reaches only 2088 characters. This issue appears to be a false positive on the character limit validation.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Steps to reproduce the behavior:
Expected behavior
The template should save successfully without triggering the character limit validation error, as it does not exceed the 5000-character limit. It worked already for the last months but it just stopped working, the last email I got has been received 2 days ago.
Screenshots
Network Traffic (comes from spam protection?)
Error notification when navigating to another email template:
System information
Additional context
This issue occurs even after minifying the template. The problem suggests that the character count validation may not be accurately calculated on Supabase's end, potentially counting whitespace or other formatting redundantly. The error is new, as similar templates with similar character counts previously saved without issues.
One of my used email templates is attached. Thanks for your support!
minified-custom-email-template-magic-link.zip
The text was updated successfully, but these errors were encountered: