Maximum Character Limit for HTML Source Code Blocks in Auth0 Forms
Last Updated:
Overview
This article defines the character limit for Hypertext Markup Language (HTML) source code within a single block in Auth0 Forms. A system limitation occurs when the source code exceeds 10,000 characters.
The following error message appears when the limit is reached:
An unknown error has occurred
The JavaScript Object Notation (JSON) technical details associated with this error appear as follows:
{ "statusCode": 400, "error": "Bad Request", "message": "Payload validation error: 'Data does not match any schemas from 'oneOf'' on property nodes.", "errorCode": "invalid_body" }
Applies To
- Auth0 Forms
- HTML source code blocks
Cause
The system enforces a maximum limit of 10,000 characters, including newlines, for HTML source code within a single block. This restriction ensures stability and proper processing of the form.
Solution
To resolve the error, ensure the HTML source code within the block does not exceed 10,000 characters. Follow these steps to manage the character count:
- Go to Actions > Forms.
- Select the form containing the HTML block.
- Open the source code for the HTML block.
- Review the code for unnecessary characters, long scripts, or embedded styles.
- Minify the HTML code to reduce the total character count.
- Distribute the content across multiple blocks if the form structure allows.
NOTE: The 10,000-character limit includes all newline characters within the source code block.