Maximum Character Limit for HTML Source Code Blocks in Auth0 Forms

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:

  1. Go to Actions > Forms.
  2. Select the form containing the HTML block.
  3. Open the source code for the HTML block.
  4. Review the code for unnecessary characters, long scripts, or embedded styles.
  5. Minify the HTML code to reduce the total character count.
  6. 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.

Recommended content

No recommended content found...