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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.