API failed to retrieve bearer token with AD credential - 401 Error: "Failed to fetch token"
search cancel

API failed to retrieve bearer token with AD credential - 401 Error: "Failed to fetch token"

book

Article ID: 398991

calendar_today

Updated On: 05-27-2025

Products

VMware Aria Suite

Issue/Introduction

When try to issue an API call to retrieve the bearer token, the response failed with a 401 Error intermittently.  When this happen, the AD account was also experiencing connectivity issue to Aria Operations.

{"level":"error","error":"failed to execute HTTP Request( https://AriaOps_FQDN/suite-api/api/auth/token/acquire): Post \"AriaOps_FQDN/suite-api/api/auth/token/acquire\": received Server Error Status Code: 401","time":"2025-05-14T01:25:49Z","message":"Failed to fetch token"}

Environment

VMware Aria Operations 8.x

Cause

The configured AD access credential was locked and wasn't able to connect to Aria Operations. 

Resolution

The AD account is configured as the primary authentication method to retrieve the token. If this account is having issue, the API call using this access credential will fail. The associated AD account will need to be unlocked prior to trying to perform the API call again.