Hello,
I’ve had a post login action that renders an onboarding form and its been working for months. Suddently today, I’m getting an “Unauthorized” error log, Type=“Failed exchange”.
The error shows up just as the user finishes posting the form.
In the error log, I see there is a null client ID. Not sure how this could happen, and I’ve changed nothing in auth0 lately.
Event data:
{
“audience”: “removed”,
“client_id”: null,
“client_name”: null,
“connection_id”: “”,
“date”: “2024-07-18T16:23:45.544Z”,
“description”: “Unauthorized”,
“hostname”: “removed”,
“ip”: “54.245.16.146”,
“scope”: null,
“type”: “feccft”,
“user_agent”: “Other 0.0.0 / Other 0.0.0”,
“user_id”: “”,
“user_name”: “”,
“log_id”: “90020240718162345629138000000000000001223372052626943043”,
“tenant_name”: “removed”,
“_id”: “90020240718162345629138000000000000001223372052626943043”,
“isMobile”: false,
“id”: “90020240718162345629138000000000000001223372052626943043”
}
Inside the Forms in the auth0 client, I can see the form execution has errors starting today.
Under execution, I see this error:
{
“code”: “ERR_ACTION_EXECUTION_ERROR”,
“message”: “Invalid OAuth credentials, please review the connection”
}
Under “Input”, I can see a bunch of metadata. I do see the correct “client” and “tenant” objects, including the correct client ID. So its interesting this form fails, with the input data having the correct client ID, but the auth0 log shows a null client id.
EDIT: if I comment out rendering of the form, everything works OK and I can login properly into the application. So I think there is a new bug in forms, but I could be wrong.
EDIT: Fixed. Somehow access to the management api was reset. Once I enabled access and scopes, its fixed. User error. Leaving this here for others.