After upgrading from Node.js 22, Forge commands started failing.
During the lint/deploy process, Forge tries to fetch Atlassian OpenAPI files and fails with the following error:
Error: Invalid response body while trying to fetch
https://developer.atlassian.com/cloud/confluence/openapi-v2.v3.json:
Premature close
Because of this, the Forge lint/deploy step becomes unreliable and fails intermittently.
The same setup was working with Node.js 22.6.0 on local environment but fails on staging/production.
- The issue appears related to Forge fetching Atlassian internal OpenAPI definitions during lint/deploy.
- Need confirmation whether this is a Node.js 22 compatibility issue or a Forge CLI issue.