This error happens after I upgraded @forge/cli from 2.0.1 to 2.0.2. Then I downgrade it to 2.0.1 but the problem is still there.
The exact request which causes the problem:
requestJira('/rest/api/3/issuetype')
requestJira('/rest/api/3/project')
One thing I noticed is that previously, those calls will send directly to a Jira instance endpoint such as https://someJiraHash.net/rest/api/3/project, but now it sends the request to a graphql server https://mySite.atlassian.net/gateway/api/graphql (just like it did before @forge/bridge@2.0.0, see the change log: Forge bridge version 2.0.0)
I tried to upgrade @forge/bridge to the latest version but it did not help.
In some cases, the requestJira or requestConfluence of the @forge/bridge methods appear broken. In order to fix it, you can revoke the existing app permissions via the Admin page of your Atlassian site.
There, you can go to Connected Apps → Select your app → Manage → Select the user having trouble with the app → Revoke permissions
When this is done, the user will be able to re-trigger the Consent Flow and the auth token retrieval should now be resolved.
Hi @XavierCaron, a member of my team has this problem again today, but it is not possible to access the Connected Apps page. This is what shows on the UI and in the Console:
The issue related to the Connected Apps page not working is currently being looked at (there is a related incident on our side).
As for the issue related to the token not coming through, I believe that the existing tokens have expired and therefore a new consent might be required… I am investigating this a bit further.
I’m facing a similar issue. My application just stopped working and the debug console shows “An unexpected error occurred when fetching an auth token”.
In the past, I followed the instructions and it worked, but it is happening again and now I cannot find the Connected Apps page in the admin site anymore.