"Error!Error trying to fetch connections" When Trying to Access a Specific Connection on the Auth0 Dashboard
When attempting to access a specific connection in the Auth0 Dashboard, the following error can be thrown whenever any tenant member, on any device, tries to access it:
Error!Error trying to fetch connections
- Auth0 Dashboard
- Connections
This error most commonly occurs when the connection was modified incorrectly via PATCH using the Management API. The payload of the "options" attribute is not fully validated when updating it using this API.
The Dashboard UI uses the "options" attribute to render the UI components for the connection's specific settings. If the UI sees an unexpected value in the "options" payload, an error is commonly thrown.
Follow the steps below to resolve the issue:
- Create a new connection of the same type if there isn't already a second connection of the same type.
- Perform a
GETrequest on both the connection and the new connection. - Inspect the payload of both JSON objects and look for irregularities in the erroneous JSON.
- Once found, modify the JSON of the erroneous connection to match the same format as the new connection without the error and include that in a PATCH request on the erroneous connection.
Afterward, the Dashboard UI should be able to load the connection, and the error should be resolved.
For reference, to get the connection IDs of all connections, including the erroneous one:
- Use the Management API to fetch all connections in the tenant using this endpoint: Get all connections.
- Once the connection ID for both the erroneous connection and the new connection is obtained, perform a
GETrequest on both connections.
For more information on this connection-specific GET endpoint, please read this documentation: Get a connection.
To make a PATCH request on the erroneous connection to resolve the Dashboard UI render of the connection, please read this documentation: Update a connection.