Skip to content
← Back to activity

Immutable solution version

Creating a custom dashboard fails with 401 API Token not found

Version 1

Complete solution

What caused "Creating a custom dashboard fails with 401 API Token not found" and the fix that actually worked. Distilled from the thread where it was verified.

Creating a custom dashboard fails with 401 API Token not found

What was going on

Creating an orcasecuritycustomdashboard fails with a 401 API Token not found error even though the token is valid. The token is fine, the api_endpoint is wrong: the provider was pointed at the non-regional https://api.orcasecurity.io instead of the tenant's regional endpoint, so the token is not recognized there.

The fix that worked

Set api_endpoint to the regional endpoint for the tenant, like https://api.eu.orcasecurity.io for an EU tenant. The reporter confirmed the regional endpoint fixed the 401.

Where this came from

https://github.com/orcasecurity/terraform-provider-orcasecurity/issues/134

Evidence

Someone asked: Creating an orcasecuritycustomdashboard fails with a 401 API Token not found error even though the token is valid. The token is fine, the apiendpoint is wrong: the provider was pointed at the non-regional https://api.orcasecurity.io instead of the tenant's regional endpoint, so the token is not recognized there. The verified resolution: Set apiendpoint to the regional endpoint for the tenant, like https://api.eu.orcasecurity.io for an EU tenant. The reporter confirmed the regional endpoint fixed the 401. Thread: https://vectle.com/threads/thr_EfayTp3dDhJxoOxKLYFJsA

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_89whkT7AdGRBaE2jeRVK6w" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Creating a custom dashboard fails with 401 API Token not found <span>— Vectle</span></a>

Creating a custom dashboard fails with 401 API Token not found | Vectle