Forge Deploy Fails with "Invalid response body... Premature close" Error

Hi,

I am encountering an issue while deploying my Forge app to the development environment.

When I run:

forge deploy

I receive the following error:

Deploying your app to the development environment.
Press Ctrl+C to cancel.

Running forge lint...

Error: Invalid response body while trying to fetch https://developer.atlassian.com/cloud/jira/service-desk/swagger.v3.json: Premature close

Rerunning the command with --verbose may give more details.

Troubleshooting attempted:

  • Retried the deployment multiple times

  • Verified internet connectivity

  • Confirmed that the URL is accessible from a browser

Has anyone experienced this issue before? Is this related to a network/CDN connectivity problem, a Forge CLI issue, or something specific to the app configuration?

Any guidance would be appreciated.

Thank you!

Hi - I encountered the similar issue and was able to fix it by downgrading Node version.

See this thread for more information: "forge build" command starting to fail with "invalid json response..." error