Error HTTP 400 Unexpected Identifier When Updating Email
Last Updated:
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:
-
Add logging within the Get User script.
-
Install the Auth0 Real-time Webtask Logs Extension.
-
Monitor the script flow in detail to identify the specific cause of the error.