Hi,
I’ve upgraded to Forge 9.1.1 this week to plan an update of my Forge application on the Atlassian Marketplace.
My Forge app is a Custom-UI bridge app. It references @forge/api and @forge/resolver. I made sure these packages were up to date in my package.json file.
I noticed a change in the manifest.yml file where I now have to add the runtime. So I did that based on the documentation provided by Atlassian. I made sure my Custom UI app was built on a v18 of NodeJs.
app:
runtime:
name: nodejs18.x
After the series of forge install, forge deploy -e development, forge install --update, I got a 401 - Unauthorized on every Jira REST API call that my app does. I tried even the most basic calls like /rest/api/3/myself and used asApp and asUser. I’m always getting a 401 - Unauthorized. I do follow on the Jira request API is proposed
Scopes have not changed since my last update months ago. I’ve checked, double-checked, and triple-checked that my scopes were reflecting the REST API endpoints documentation.
I’ve uninstalled the app with forge uninstall and reinstalled it. I still get 401 - Unauthorized for every call the app does on any Jira REST API endpoint.
I’ve logged out of my Jira account. I’ve updated my browser. I’ve cleared my cache. I’ve run forge lint and forge lint --fix. These commands tell me the scopes in manifest.yml are ok. I’ve moved the scopes section around in the manifest.yml file.
I’m out of ideas to fix my problem.
I’ve even removed the scopes from the file, and ran a forge lint, and I got no error. So this might indicate that the issue is in the Forge CLI and its deploy mechanism.
Reading the forge channel on Atlassian’s Slack, there seems to be some issues lately with @forge/storage. Maybe I’m getting a side effect from this.
Does anyone have an idea of what my issue is? I’m not so far behind on the Forge CLI updates. I was using version 7 in March and things worked well.
Any help is welcome,
Louis-Philippe