Error: request to https://forge-templates.us-west-2.prod.public.atl-paas.net/templates.json failed, reason: read ECONNRESET

I’m trying to build the Forge hello world app for Confluence. When I run forge create and enter an app name, I’m immediately presented with the error

Error: request to https://forge-templates.us-west-2.prod.public.atl-paas.net/templates.json failed, reason: read ECONNRESET

I tried to load that JSON file in my browser and it initially gave an error but hitting refresh resulted in the file loading.

I disabled my firewall and it still gives the error. I also tried a different network (home wifi vs hotspot) and still get the error.

Here is the full error with --verbose

FetchError: request to https://forge-templates.us-west-2.prod.public.atl-paas.net/templates.json failed, reason: read ECONNRESET
at ClientRequest. (C:\Users\user\AppData\Roaming\npm\node_modules@forge\cli\node_modules\node-fetch\lib\index.js:1501:11)
at ClientRequest.emit (node:events:514:28)
at ClientRequest.emit (node:domain:488:12)
at TLSSocket.socketErrorListener (node:_http_client:495:9)
at TLSSocket.emit (node:events:514:28)
at TLSSocket.emit (node:domain:488:12)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

We’ve had a similar report and turns out there was a problem with IPv6 support. Please try the solutions there and see if they help.

2 Likes

I ran into something tangentally similar today (same error, but with forge tunnel) and the issue ended up being that an old ngrok session had never been ended and my ngrok account only allows 1 connection. To fix it, I logged into ngrok, navigated to the agents tab and closed the old session. After that, zero issues.

2 Likes