"Error!Error trying to fetch connections" When Trying to Access a Specific Connection on the Auth0 Dashboard

Overview

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

 

Applies To
  • Auth0 Dashboard
  • Connections
Cause

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.

Solution

Follow the steps below to resolve the issue:

  1. Create a new connection of the same type if there isn't already a second connection of the same type. 
  2. Perform a GET request on both the connection and the new connection.
  3. Inspect the payload of both JSON objects and look for irregularities in the erroneous JSON.
  4. 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:

  1. Use the Management API to fetch all connections in the tenant using this endpoint: Get all connections.
  2. Once the connection ID for both the erroneous connection and the new connection is obtained, perform a GET request 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.

Recommended content

No recommended content found...