API returned access denied error from Resolver

After updating my plugin to Forge 10.0.1(node.js v20.15.0) all my requests in Resolver are rejected with 403 Forbidden error(Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.). I use Custom UI(use @forge/bridge). In my Resolver I do simple requests like this:

const requestURL = await route`/rest/api/3/project/${id}/components`;
    const res = await api.asApp()
        .requestJira(requestURL, {
            headers: {
                'Accept': 'application/json'
            }
        });

And all my requests returned with 403. This problem i can see on all environments(i checked staging and development). Similar with using storage.query(), now I get APIError: Permissions error. All had worked OK before I updated libs

Similar situation with Forbidden answer is in all parts of plugin(In main function i have event listener and there requests are forbidden too). I checked with differents users. I dunno what happened after updating. My plugin totally paralyzed.

@Natallia,

Sorry to hear that. I cannot reproduce the problem in a fresh app. The problem may require Atlassian to look into the logs for your app & installations. As such, I recommend opening a developer support case.

Thank you Ian for piece of advice. First I will try update again @forge/api. Everything points to the fact that something went wrong in this point during updating. If it doesn’t help, I’ll open a case.

The problem was solved after several updates “@forge/api” to latest version.

1 Like