Skip to content

cosmos.azure.com: Cosmos Explorer error when AAD token expires #2038

@J0nKn1ght

Description

@J0nKn1ght

When using the https://cosmos.azure.com/ explorer, after a period of inactivity the AAD token expires, and the site doesn't refresh the token. The following error is displayed:

Failed to query item for container {container}: Request blocked by Auth {resource} : Provided AAD token has been expired since [1/30/2025 10:38:31 AM (UTC)]. Current server time is [1/30/2025 2:47:35 PM (UTC)]. Please refresh the AAD token. ActivityId: 5ced279c-2e04-4f54-88ed-e6ce694ba91f, Windows/10.0.20348 cosmos-netstandard-sdk/3.18.0

This force you to do a browser window refresh, which loses all open query tabs, and resets the connected database to whichever was last accessed in the browser, which may be different to the window being refreshed.

Can the AAD token be refreshed without forcing a browser window refresh?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions