Hi,
I'm developing a Connect on Forge app for Jira Cloud. I imported the invoke function from @Forge/bridge to use in the code file of connect modules in the remotes/connect folder to call to forge modules and got the error Uncaught BridgeAPIError: Unable to establish a connection with the Custom UI bridge.
Do you have any idea of what problem could be?
Hi @Hieu Nguyen
There may be several root causes for this error. Did you try forge tunnel? Do you get a similar connection error when you use tunnel?
As the error states, Forge apps do not work directly without being embedded in the Atlassian context. However, I trust you have already configured the Bitbucket connection correctly in your manifest file, and it has been well configured.
@forge/bridge can only be used in Custom UI components, It does not work outside a Custom UI context, I mean for backend or resolver calls, you can use @forge/api instead of bridge.
Last, I'd strongly suggest posting these kinds of developer questions on the Atlassian Developer Community, as you can receive more answers.
@Tuncay Senturk Thank you so much!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.