# \#forge-fetch

**URL:** https://community.developer.atlassian.com/tag/forge-fetch/1334.md

[Latest](https://community.developer.atlassian.com/latest.md) · [Categories](https://community.developer.atlassian.com/categories.md) · [Tags](https://community.developer.atlassian.com/tags.md)

---

## [Forge external api call](https://community.developer.atlassian.com/t/forge-external-api-call/79682)

<div class="topic-metadata">

**Author:** [@MohamedNajah](https://community.developer.atlassian.com/u/MohamedNajah)\
**Replies:** 2\
**Last updated:** [September 27, 2025, 3:31pm UTC](https://community.developer.atlassian.com/t/forge-external-api-call/79682 "2025-09-27T15:31:37Z")

</div>

hey, i’m developping a jira service management app using forge, iwanna call an external api that has the database api ,the forge logs shows ERROR 2024-05-03T15:39:54.942Z f24c58f2-6eda-4d95-b070-50d7c32d4b03 Error fe…

---

## [Frequent 'Socket Hang Up' Errors with fetch() and api.asApp().requestJira() in Forge App](https://community.developer.atlassian.com/t/frequent-socket-hang-up-errors-with-fetch-and-api-asapp-requestjira-in-forge-app/82558)

<div class="topic-metadata">

**Author:** [@FengLu](https://community.developer.atlassian.com/u/FengLu)\
**Replies:** 5\
**Last updated:** [March 14, 2025, 10:24am UTC](https://community.developer.atlassian.com/t/frequent-socket-hang-up-errors-with-fetch-and-api-asapp-requestjira-in-forge-app/82558 "2025-03-14T10:24:52Z")

</div>

Hi guys, I’ve recently been encountering frequent errors in my Forge app when using fetch() and api.asApp().requestJira(). The error message reads: “reason: socket hang up at ClientRequest.” However, the same code rarel…

---

## [Calling gateway API endpoints from Forge apps](https://community.developer.atlassian.com/t/calling-gateway-api-endpoints-from-forge-apps/89494)

<div class="topic-metadata">

**Author:** [@CaelMetcalfe](https://community.developer.atlassian.com/u/CaelMetcalfe)\
**Replies:** 4\
**Last updated:** [March 5, 2025, 7:44am UTC](https://community.developer.atlassian.com/t/calling-gateway-api-endpoints-from-forge-apps/89494 "2025-03-05T07:44:09Z")

</div>

Hi, I am trying to call https://site.atlassian.net/gateway/api/… endpoints, which while undocumented, are available and will respond to authenticated user sessions if you access direct URLs via browser, or pass valid Aut…

---

## [External fetch permissions](https://community.developer.atlassian.com/t/external-fetch-permissions/59255)

<div class="topic-metadata">

**Author:** [@Ben3](https://community.developer.atlassian.com/u/Ben3)\
**Replies:** 5\
**Last updated:** [January 17, 2025, 12:23pm UTC](https://community.developer.atlassian.com/t/external-fetch-permissions/59255 "2025-01-17T12:23:01Z")

</div>

Context to my project is that I am triggering a function based on confluence page events. I am using an async function called pageTrigger to determine if they are created or updated events: function: - key: main …

---

## [Invoke remote API from forge application](https://community.developer.atlassian.com/t/invoke-remote-api-from-forge-application/85454)

<div class="topic-metadata">

**Author:** [@SimonLarson](https://community.developer.atlassian.com/u/SimonLarson)\
**Replies:** 5\
**Last updated:** [November 11, 2024, 10:32am UTC](https://community.developer.atlassian.com/t/invoke-remote-api-from-forge-application/85454 "2024-11-11T10:32:53Z")

</div>

Hi, I’m currently developing an UI kit issue panel app using Atlassian Forge, and I am having trouble integrating Twilio’s WhatsApp API. I’m trying to send WhatsApp messages from Jira using Twilio, but my current approa…

---

## [407 Proxy Authentication Required error using requestJira](https://community.developer.atlassian.com/t/407-proxy-authentication-required-error-using-requestjira/85274)

<div class="topic-metadata">

**Author:** [@Bill1](https://community.developer.atlassian.com/u/Bill1)\
**Replies:** 3\
**Last updated:** [October 17, 2024, 7:36am UTC](https://community.developer.atlassian.com/t/407-proxy-authentication-required-error-using-requestjira/85274 "2024-10-17T07:36:30Z")

</div>

Picked up a previously working project after about a year. Upgraded to forge CLI to 10.7.0. Using forge tunnel, when I refresh the hosting page, I am getting a 407 Proxy Authentication Required as the response from cons…

---

## [Code stops execution after the fetch() call](https://community.developer.atlassian.com/t/code-stops-execution-after-the-fetch-call/83677)

<div class="topic-metadata">

**Author:** [@SachinSaini](https://community.developer.atlassian.com/u/SachinSaini)\
**Replies:** 10\
**Last updated:** [September 24, 2024, 10:08am UTC](https://community.developer.atlassian.com/t/code-stops-execution-after-the-fetch-call/83677 "2024-09-24T10:08:37Z")

</div>

I have a product trigger forge app that clones an issue from 1 Jira Cloud Instance to another Jira cloud instance. Event: issue::created Once it is triggered, a function is called to POST issue to instance 2 using fetc…

---

## [Code stops at fetch api](https://community.developer.atlassian.com/t/code-stops-at-fetch-api/64242)

<div class="topic-metadata">

**Author:** [@Alvin](https://community.developer.atlassian.com/u/Alvin)\
**Replies:** 2\
**Last updated:** [September 19, 2024, 9:40am UTC](https://community.developer.atlassian.com/t/code-stops-at-fetch-api/64242 "2024-09-19T09:40:17Z")

</div>

I am trying to call an external API using the fetch method (basic authentication) but the code freezes at the fetch line. I am testing with the pokemon API as it doesn’t require authentication and have also included it u…

---

## [Unable to POST to Another Jira Instance using Fetch](https://community.developer.atlassian.com/t/unable-to-post-to-another-jira-instance-using-fetch/83534)

<div class="topic-metadata">

**Author:** [@SachinSaini](https://community.developer.atlassian.com/u/SachinSaini)\
**Replies:** 1\
**Last updated:** [September 16, 2024, 8:13pm UTC](https://community.developer.atlassian.com/t/unable-to-post-to-another-jira-instance-using-fetch/83534 "2024-09-16T20:13:11Z")

</div>

I am trying to create a forge request to update data from 1 Jira Cloud instance to another Jira Cloud Instance. I’ve added external.fetch.backend in my manifest file: external: fetch: backend: - 'htt…

---

## [Fetch ETIMEDOUT after upgrade to CLI 9.0.0 + Solution](https://community.developer.atlassian.com/t/fetch-etimedout-after-upgrade-to-cli-9-0-0-solution/79601)

<div class="topic-metadata">

**Author:** [@LaubeDaniel](https://community.developer.atlassian.com/u/LaubeDaniel)\
**Replies:** 7\
**Last updated:** [July 25, 2024, 3:33am UTC](https://community.developer.atlassian.com/t/fetch-etimedout-after-upgrade-to-cli-9-0-0-solution/79601 "2024-07-25T03:33:46Z")

</div>

Hello, after updating to new CLI 9.0.0 and updating manifest with app.runtime.name: nodejs18.x fetch to db server stopped working and always ends up with this error: FetchError: request to https://XX.XX.XX.XX:1234/xyz …

---

## [What are the expected use-cases of invokeRemote?](https://community.developer.atlassian.com/t/what-are-the-expected-use-cases-of-invokeremote/81936)

<div class="topic-metadata">

**Author:** [@PaulHicks](https://community.developer.atlassian.com/u/PaulHicks)\
**Replies:** 1\
**Last updated:** [July 19, 2024, 2:38pm UTC](https://community.developer.atlassian.com/t/what-are-the-expected-use-cases-of-invokeremote/81936 "2024-07-19T14:38:47Z")

</div>

I’d like to know if I ought to use invokeRemote() from my resolver. I’m looking to data from a 3rd party site. No auth is required, it’s a simple GET to a public site (specifically, it’s fetching a list of public holiday…

---

## [The "options.agent" property must be one of Agent-like Object, undefined, or false. Received type string ('FORGE\_PRODUCT\_REQUEST')](https://community.developer.atlassian.com/t/the-options-agent-property-must-be-one-of-agent-like-object-undefined-or-false-received-type-string-forge-product-request/81907)

<div class="topic-metadata">

**Author:** [@vandana](https://community.developer.atlassian.com/u/vandana)\
**Replies:** 1\
**Last updated:** [July 18, 2024, 4:48am UTC](https://community.developer.atlassian.com/t/the-options-agent-property-must-be-one-of-agent-like-object-undefined-or-false-received-type-string-forge-product-request/81907 "2024-07-18T04:48:00Z")

</div>

Hi all, I am calling the confluence REST APIs from a remote (which is my node express service). Can I use the requestConfluence() method in the remote? The documentation only has examples of using requestConfluence from…

---

## [I need help with my Forge application to get user’s access token, so that I can authorise user in my application](https://community.developer.atlassian.com/t/i-need-help-with-my-forge-application-to-get-user-s-access-token-so-that-i-can-authorise-user-in-my-application/81033)

<div class="topic-metadata">

**Author:** [@Rob1](https://community.developer.atlassian.com/u/Rob1)\
**Replies:** 1\
**Last updated:** [June 20, 2024, 4:16pm UTC](https://community.developer.atlassian.com/t/i-need-help-with-my-forge-application-to-get-user-s-access-token-so-that-i-can-authorise-user-in-my-application/81033 "2024-06-20T16:16:01Z")

</div>

We are building service that provides users with an option to backup their data from different applications. We saw applications that used the way to insert their websites as an iFrame and automatically authorise user’s …

---

## [GetAddrInfo ENOTFOUND when Forge App running on Jira Servers (and not through forge tunnel)](https://community.developer.atlassian.com/t/getaddrinfo-enotfound-when-forge-app-running-on-jira-servers-and-not-through-forge-tunnel/80837)

<div class="topic-metadata">

**Author:** [@AmyRose](https://community.developer.atlassian.com/u/AmyRose)\
**Replies:** 6\
**Last updated:** [June 18, 2024, 12:39pm UTC](https://community.developer.atlassian.com/t/getaddrinfo-enotfound-when-forge-app-running-on-jira-servers-and-not-through-forge-tunnel/80837 "2024-06-18T12:39:11Z")

</div>

Hi, I’m trying to develop a forge app that requires sending data on the backend (and frontend custom UI page) to my company’s external API, at api.\<company site\> and dev.api.\<company site\>. This works fine on the fronten…

---

## [Don't treat NEEDS\_AUTHENTICATION\_ERR as an invocation error in metrics](https://community.developer.atlassian.com/t/dont-treat-needs-authentication-err-as-an-invocation-error-in-metrics/68908)

<div class="topic-metadata">

**Author:** [@DanielCompton](https://community.developer.atlassian.com/u/DanielCompton)\
**Replies:** 6\
**Last updated:** [June 13, 2024, 11:29pm UTC](https://community.developer.atlassian.com/t/dont-treat-needs-authentication-err-as-an-invocation-error-in-metrics/68908 "2024-06-13T23:29:54Z")

</div>

We are using a custom OAuth provider for auth in our Forge app. When a user attempts to use our app, we check for their credentials with this code, using the Forge resolver API: const service = asUser().withProvider("se…

---

## [Can't connect to MS Graph from Forge app](https://community.developer.atlassian.com/t/cant-connect-to-ms-graph-from-forge-app/79531)

<div class="topic-metadata">

**Author:** [@LuisMiguel](https://community.developer.atlassian.com/u/LuisMiguel)\
**Replies:** 3\
**Last updated:** [June 7, 2024, 7:03am UTC](https://community.developer.atlassian.com/t/cant-connect-to-ms-graph-from-forge-app/79531 "2024-06-07T07:03:32Z")

</div>

Hi there!, I’m trying to make MS Graph API calls from my forge app and I can’t. I tried this using the fetch API but this doesn’t work and I don’t receive any error. Could someone please help me with this? This is my c…

---

## [Send an API Request from Confluence Resolver](https://community.developer.atlassian.com/t/send-an-api-request-from-confluence-resolver/80578)

<div class="topic-metadata">

**Author:** [@AITMOUSSAMohamed](https://community.developer.atlassian.com/u/AITMOUSSAMohamed)\
**Replies:** 0\
**Last updated:** [June 5, 2024, 9:51am UTC](https://community.developer.atlassian.com/t/send-an-api-request-from-confluence-resolver/80578 "2024-06-05T09:51:11Z")

</div>

Hello, I am in the process of creating a “macro template” application, and I want to know if I have the ability to send an API request from the resolver to another machine to retrieve data that I want to use in my Confl…

---

## [Jira Forge Custom UI app only working during 'forge tunnel' but not outside of that](https://community.developer.atlassian.com/t/jira-forge-custom-ui-app-only-working-during-forge-tunnel-but-not-outside-of-that/80154)

<div class="topic-metadata">

**Author:** [@DanielVelkov](https://community.developer.atlassian.com/u/DanielVelkov)\
**Replies:** 1\
**Last updated:** [May 21, 2024, 11:49am UTC](https://community.developer.atlassian.com/t/jira-forge-custom-ui-app-only-working-during-forge-tunnel-but-not-outside-of-that/80154 "2024-05-21T11:49:46Z")

</div>

Hello, When I try to open the app I installed in development environment, it tells me that there was some error in the index.js file in one of the ‘resolver.define’ functions using fetch for an external domain. Here is…

---

## [Forge App cannot access storage API when module has endpoint resolver](https://community.developer.atlassian.com/t/forge-app-cannot-access-storage-api-when-module-has-endpoint-resolver/79905)

<div class="topic-metadata">

**Author:** [@IvanDolgov](https://community.developer.atlassian.com/u/IvanDolgov)\
**Replies:** 6\
**Last updated:** [May 13, 2024, 11:48pm UTC](https://community.developer.atlassian.com/t/forge-app-cannot-access-storage-api-when-module-has-endpoint-resolver/79905 "2024-05-13T23:48:47Z")

</div>

Hi guys. I’m developing a small Forge app which should make requests to my API. Currently I use 2 modules, that’s from the manifest.yml: jira:issuePanel: - key: my-issue-panel icon: https://developer.atlassian…

---

## [Error then calling external api](https://community.developer.atlassian.com/t/error-then-calling-external-api/78916)

<div class="topic-metadata">

**Author:** [@kim](https://community.developer.atlassian.com/u/kim)\
**Replies:** 2\
**Last updated:** [April 29, 2024, 9:46am UTC](https://community.developer.atlassian.com/t/error-then-calling-external-api/78916 "2024-04-29T09:46:16Z")

</div>

From my forge app I’m calling an external APIs (here monday but got it with others as well) but I often get a 502 or a timeout which crash the application. Eg. Here I call the same method 11 times in a row Am I the only…

---

## [Use basic fetch](https://community.developer.atlassian.com/t/use-basic-fetch/79467)

<div class="topic-metadata">

**Author:** [@Paul6](https://community.developer.atlassian.com/u/Paul6)\
**Replies:** 4\
**Last updated:** [April 29, 2024, 3:12am UTC](https://community.developer.atlassian.com/t/use-basic-fetch/79467 "2024-04-29T03:12:04Z")

</div>

useEffect(async () =\> { fetchData(); }, \[\]); const fetchData = async () =\> { try { const response = await fetch('https://api.npms.io/v2/search?q=react'); if (!response.ok) { throw new Error('…

---

## [Any plans on supporting response.body in Fetch API?](https://community.developer.atlassian.com/t/any-plans-on-supporting-response-body-in-fetch-api/70737)

<div class="topic-metadata">

**Author:** [@ShuminLiu](https://community.developer.atlassian.com/u/ShuminLiu)\
**Replies:** 3\
**Last updated:** [April 8, 2024, 11:12am UTC](https://community.developer.atlassian.com/t/any-plans-on-supporting-response-body-in-fetch-api/70737 "2024-04-08T11:12:30Z")

</div>

Hi, Implementing a feature in our apps needs the stream feature for http request, which requires access to response.body.getReader() in Fetch API. But currently the body property is missing. Is there any plans to add it…

---

## [Error: this environment is missing the following Web Fetch API type: fetch is not defined](https://community.developer.atlassian.com/t/error-this-environment-is-missing-the-following-web-fetch-api-type-fetch-is-not-defined/76897)

<div class="topic-metadata">

**Author:** [@ByronBuckley](https://community.developer.atlassian.com/u/ByronBuckley)\
**Replies:** 2\
**Last updated:** [February 20, 2024, 7:01am UTC](https://community.developer.atlassian.com/t/error-this-environment-is-missing-the-following-web-fetch-api-type-fetch-is-not-defined/76897 "2024-02-20T07:01:27Z")

</div>

Hello, I am building a confluence app with anthropic-ai sdk. By default, this library uses node-fetch in Node, and expects a global fetch function in other environments. When I use the library I get the error below. E…

---

## [I can't get a response to the request](https://community.developer.atlassian.com/t/i-cant-get-a-response-to-the-request/76836)

<div class="topic-metadata">

**Author:** [@CristinaLaraLpez](https://community.developer.atlassian.com/u/CristinaLaraLpez)\
**Replies:** 1\
**Last updated:** [February 2, 2024, 6:57am UTC](https://community.developer.atlassian.com/t/i-cant-get-a-response-to-the-request/76836 "2024-02-02T06:57:27Z")

</div>

I’m trying to make a call to an internal Jira endpoint using the fetch function from the React code of a Forge app I have installed on a test Jira Cloud, but I’m having trouble getting the response. The call I am trying …

---

## [Bug in Forge External-\>Fetch-\> Backend Forge permissions](https://community.developer.atlassian.com/t/bug-in-forge-external-fetch-backend-forge-permissions/75444)

<div class="topic-metadata">

**Author:** [@IanBradley](https://community.developer.atlassian.com/u/IanBradley)\
**Replies:** 3\
**Last updated:** [December 13, 2023, 3:35am UTC](https://community.developer.atlassian.com/t/bug-in-forge-external-fetch-backend-forge-permissions/75444 "2023-12-13T03:35:59Z")

</div>

There appears to be a bug with trying to set external fetch URL permissions e.g. permissions: external: fetch: backend: - '\*.metricus.com' The error is ‘There was an error invoking the function - UR…

---

## [Custom app external fetch backend permissions error](https://community.developer.atlassian.com/t/custom-app-external-fetch-backend-permissions-error/72674)

<div class="topic-metadata">

**Author:** [@ShaunFlagg](https://community.developer.atlassian.com/u/ShaunFlagg)\
**Replies:** 3\
**Last updated:** [September 21, 2023, 11:47pm UTC](https://community.developer.atlassian.com/t/custom-app-external-fetch-backend-permissions-error/72674 "2023-09-21T23:47:38Z")

</div>

I am building a Confluence app that pulls images from Imgur api and displays them in Confluence pages. Here is the JSX import ForgeUI, { render, Fragment, Macro, Text, Image, useProductContext, useState, useEffect } fr…

---

## [Accessing forge api route giveserror on Content Security Policy](https://community.developer.atlassian.com/t/accessing-forge-api-route-giveserror-on-content-security-policy/71906)

<div class="topic-metadata">

**Author:** [@FalkoGieseke](https://community.developer.atlassian.com/u/FalkoGieseke)\
**Replies:** 3\
**Last updated:** [September 11, 2023, 1:53pm UTC](https://community.developer.atlassian.com/t/accessing-forge-api-route-giveserror-on-content-security-policy/71906 "2023-09-11T13:53:27Z")

</div>

const response = await api.asUser().requestConfluence(route/wiki/api/v2/attachments/983042); fetch.js:14 Refused to connect to ‘https://confluence/wiki/api/v2/attachments/983042’ because it violates the following Conten…

---

## [How do I use requestConfluence to call the api?](https://community.developer.atlassian.com/t/how-do-i-use-requestconfluence-to-call-the-api/71983)

<div class="topic-metadata">

**Author:** [@SharonGilmore](https://community.developer.atlassian.com/u/SharonGilmore)\
**Replies:** 2\
**Last updated:** [August 21, 2023, 7:50pm UTC](https://community.developer.atlassian.com/t/how-do-i-use-requestconfluence-to-call-the-api/71983 "2023-08-21T19:50:06Z")

</div>

I’m writing an app using Forge and CustomUI. I want to be able to connect to the Confluence API, but I keep getting errors. Currently in static/hello-world/src/App.js I call the following function when a button is clic…

---

## [Forge Custom Kit obtains external API and prompts error 'Invalid' external. fetch. backend '](https://community.developer.atlassian.com/t/forge-custom-kit-obtains-external-api-and-prompts-error-invalid-external-fetch-backend/71207)

<div class="topic-metadata">

**Author:** [@Zhangyesen](https://community.developer.atlassian.com/u/Zhangyesen)\
**Replies:** 0\
**Last updated:** [July 14, 2023, 3:01am UTC](https://community.developer.atlassian.com/t/forge-custom-kit-obtains-external-api-and-prompts-error-invalid-external-fetch-backend/71207 "2023-07-14T03:01:31Z")

</div>

I want to use the Forge application to obtain the Java interface of our company’s server, but always prompt 'request to https://61.219.78.22:59637/page failed, reason: self signed certificate '.

---

## [Unable to verify the first certificate error](https://community.developer.atlassian.com/t/unable-to-verify-the-first-certificate-error/69871)

<div class="topic-metadata">

**Author:** [@JiaxinWang](https://community.developer.atlassian.com/u/JiaxinWang)\
**Replies:** 1\
**Last updated:** [May 31, 2023, 9:25am UTC](https://community.developer.atlassian.com/t/unable-to-verify-the-first-certificate-error/69871 "2023-05-31T09:25:21Z")

</div>

I’m developing a plugin with Atlassian Forge , it integrates Jira Cloud and our product ALM Server. I use Fetch API of @forge/api to access my ALM Server, but I get the error in the below picture. It may be the SSL cert…

[Next page](https://community.developer.atlassian.com/tag/forge-fetch/1334.md?match_all_tags=true&page=1&tags%5B%5D=forge-fetch)
