Error getting users from Confluence with @forge/bridge

I’m getting users from Confluence using

import { requestConfluence } from '@forge/bridge';
/* define variable accountId */
return await (
    await requestConfluence(`/wiki/rest/api/user?accountId=${accountId}`, {
        headers: {
            Accept: 'application/json',
        },
    })
).json();

Recently, this has stopped working. When I try awaiting this, I get Error: An unexpected error occurred when fetching an auth token. Am I doing something wrong? Can’t find anything in my code or the docs that changed.

2 Likes

I have the same problem, you can watch this post @forge/bridge requestJira stopped working: An unexpected error occurred when fetching an auth token

2 Likes