Error HTTP 400 Unexpected Identifier When Updating Email

Overview

An issue occurs when attempting to update the email address of a user in a custom database, even though other root attributes update successfully. When this action is attempted, the following error message displays:

Invalid response code from the auth0-sandbox: HTTP 400. Unexpected identifier

Applies To

  • Custom Database

  • User Profile

  • Auth0 Real-time Webtask Logs Extension

Cause

This issue is caused by an unhandled error in the Get User script configured for the custom database.

Solution

Follow these steps to debug the error and isolate issues arising from the connection:

  1. Add logging within the Get User script.

  2. Install the Auth0 Real-time Webtask Logs Extension.

  3. Monitor the script flow in detail to identify the specific cause of the error.

Recommended content

No recommended content found...