I am unable to get forge tunnel to work.
From my forge tunnel command I am getting
=== Bundling code...
✔ Functions bundled.
Listening for requests...
Received proxy request. Serving file index.html for resource main
from specified address http://localhost:3000
Error: Failed to connect to localhost:3000.
Check that your service is running.
But, my service is running :
Compiled successfully!
You can now view jira-global-page-custom-ui-static in the browser.
Local: http://localhost:3000
On Your Network: http://192.168.0.188:3000
Within the Atlassian instance on jira global page I am gettting
"Failed to connect to localhost:3000.
Check that your service is running."
In the local browser going to localhost:3000 in console I get:
"Uncaught BridgeAPIError:
Unable to establish a connection with the Custom UI bridge.
If you are trying to run your app locally, Forge apps only work
in the context of Atlassian products.
Refer to https://go.atlassian.com/forge-tunneling-with-custom-ui
for how to tunnel when using a local development server."
Here is my manifest:
modules:
jira:globalPage:
- key: forge-customuiapitest-hello-world-page
resource: main
resolver:
function: resolver
title: forge_customUIAPITest
function:
- key: resolver
handler: index.handler
resources:
- key: main
path: static/hello-world/build
tunnel:
port: 3000
app:
runtime:
name: nodejs20.x
id: ari:cloud:ecosystem::app/<id>
Here are my versions:
node -v
v18.17.0
forge --version
10.11.0
I believe this version no longer requires Docker.
I had an older version of forge installed when Docker was required. I am wondering if some of those settings are stuck in a configuration somewhere. I had done a
npm i -g @forge/cli@latest
without an uninstall first, before doing:
npm uninstall -g @forge/cli
npm i -g @forge/cli@latest
I also use ngrok with Connect app development. I am wondering if these setting are conflicting on my local machine somewhere.
Any ideas on what to try next?
Thanks in advance for any ideas!