Error: Failed To Connect to API
Issue
Connection setup tests fail with the following error:
Failed to connect to API. Server is not responding with correct response after specific retries and giving status code [401] and status message[]
Environment
Connector: Pigment
Resolution
To resolve this issue, ensure your Pigment API key has both the Export and Modeling Metadata scopes.
For more information, see the Pigment Modeling Metadata API documentation.
Cause
This issue occurs when your Pigment API key lacks the Modeling Metadata scope required for the connection test. We use the Export scope to sync data. However, the connection test calls the /application metadata API endpoint, which requires the Modeling Metadata scope.