# 403 - Blocked Egress after updating mainfest.yml

**URL:** <https://community.developer.atlassian.com/t/403-blocked-egress-after-updating-mainfest-yml/74492>\
**Category:** Forge\
**Tags:** forge-native-nodejs-runtime, egress-permissions, confluence-cloud\
**Created:** [November 7, 2023, 3:29pm UTC](https://community.developer.atlassian.com/t/403-blocked-egress-after-updating-mainfest-yml/74492 "2023-11-07T15:29:02Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![lprattes](https://avatars.discourse-cdn.com/v4/letter/l/f19dbf/32.png) [@lprattes](https://community.developer.atlassian.com/u/lprattes)\
**Post date:** [November 7, 2023, 3:29pm UTC](https://community.developer.atlassian.com/t/403-blocked-egress-after-updating-mainfest-yml/74492/1 "2023-11-07T15:29:02Z")

</div>

Hi, my previously working forge app fails after i made an update to the manifest.yml. I first made some unrelated changes to the manifest, which first threw this error. but then I reversed these changes, and now the deployed and tunneled app fails at an api request that should not even be egress in my opinion. All the necessary scopes for this are applied, especially the `- readonly:content.attachment:confluence`  
This is the api call in question:

```javascript
const response_test = await api.asUser().requestConfluence(route`/wiki/rest/api/content/${contentId}/child/attachment/`, {
    headers: {
      'Accept': 'application/json'
    }
  })

```

when executing this call, the tunnel logs the following:

```plaintext
ERROR 16:12:02.925 97aa8f4b-57ef-4062-ab69-417438c1c684 PROXY_ERR: Forge platform failed to process runtime HTTP request - 403 - BLOCKED_EGRESS
    at handleProxyResponseErrors (/tmp/tunnel-7460-yjwSbXHtsquR/bundled/index.js:124:15)
    at /tmp/tunnel-7460-yjwSbXHtsquR/bundled/index.js:112:9
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /tmp/tunnel-7460-yjwSbXHtsquR/bundled/index.js:10162:20
    at async Object.resolve [as handler] (/tmp/tunnel-7460-yjwSbXHtsquR/bundled/index.js:2877:28)
    at async /tmp/tunnel-7460-yjwSbXHtsquR/index.js:1:192362
    at async process.<anonymous> (.nvm/versions/node/v20.8.0/lib/node_modules/@forge/cli/node_modules/@forge/node-runtime/out/sandbox/sandbox-runner.js:8:20) {
  status: 403,
  errorCode: 'BLOCKED_EGRESS'
}

```

i have previously had that error, and it resolved itself miraculously after some time, but i need to understand why this happens as it severely limits my work. Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![AlexeyKotlyarov](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/alexeykotlyarov/32/45643_2.png) [@AlexeyKotlyarov](https://community.developer.atlassian.com/u/AlexeyKotlyarov)\
**Post date:** [November 8, 2023, 9:50am UTC](https://community.developer.atlassian.com/t/403-blocked-egress-after-updating-mainfest-yml/74492/2 "2023-11-08T09:50:32Z")

</div>

I see that you’re using the native Node.js runtime for this app. Have you [updated](https://developer.atlassian.com/platform/forge/runtime-reference/native-nodejs-runtime/) `@forge/api` to the latest version?

---

<div class="post-metadata">

**Author:** ![lprattes](https://avatars.discourse-cdn.com/v4/letter/l/f19dbf/32.png) [@lprattes](https://community.developer.atlassian.com/u/lprattes)\
**Post date:** [November 8, 2023, 9:56am UTC](https://community.developer.atlassian.com/t/403-blocked-egress-after-updating-mainfest-yml/74492/3 "2023-11-08T09:56:45Z")

</div>

yes i updated using `npm install -g @forge/api@latest`, that should suffice right?

---

<div class="post-metadata">

**Author:** ![AlexeyKotlyarov](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/alexeykotlyarov/32/45643_2.png) [@AlexeyKotlyarov](https://community.developer.atlassian.com/u/AlexeyKotlyarov)\
**Post date:** [November 8, 2023, 10:11am UTC](https://community.developer.atlassian.com/t/403-blocked-egress-after-updating-mainfest-yml/74492/4 "2023-11-08T10:11:05Z")

</div>

Sorry, that’s not the right command. (It installs `@forge/api` globally on your machine, which is harmless but not necessary.)

You need to update the version used in your Forge app:

- `npm install @forge/api@latest` if using NPM
- `yarn upgrade @forge/api@latest` in using Yarn

Then check that the version you have for it in `package.json` matches the [current version on NPM](https://www.npmjs.com/package/@forge/api).

---

<div class="post-metadata">

**Author:** ![lprattes](https://avatars.discourse-cdn.com/v4/letter/l/f19dbf/32.png) [@lprattes](https://community.developer.atlassian.com/u/lprattes)\
**Post date:** [November 8, 2023, 10:14am UTC](https://community.developer.atlassian.com/t/403-blocked-egress-after-updating-mainfest-yml/74492/5 "2023-11-08T10:14:57Z")

</div>

Did that, still no change:/  
`"@forge/api": "^2.20.0",`

---

<div class="post-metadata">

**Author:** ![AlexeyKotlyarov](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/alexeykotlyarov/32/45643_2.png) [@AlexeyKotlyarov](https://community.developer.atlassian.com/u/AlexeyKotlyarov)\
**Post date:** [November 9, 2023, 12:59am UTC](https://community.developer.atlassian.com/t/403-blocked-egress-after-updating-mainfest-yml/74492/6 "2023-11-09T00:59:39Z")

</div>

That’s the correct version. Could you please check that:

- It’s actually installed (`cat node_modules/@forge/api/package.json`)
- You have restarted your tunnel

If the error still persists, can you please DM me your app ID so I can take a look?

---

<div class="post-metadata">

**Author:** ![ZachFey](https://avatars.discourse-cdn.com/v4/letter/z/e95f7d/32.png) [@ZachFey](https://community.developer.atlassian.com/u/ZachFey)\
**Post date:** [November 9, 2023, 2:37pm UTC](https://community.developer.atlassian.com/t/403-blocked-egress-after-updating-mainfest-yml/74492/7 "2023-11-09T14:37:17Z")

</div>

I’m having the same issue, please let me know if you find a solution. Other API calls are working for me - creating issues, getting Issue Transitions, Transitioning Issues, Getting Server Info, getting Attachment Thumbnails, but attempting to get Attachment Content returns 403 BLOCKED\_EGRESS.

The code:

```auto
export async function getAttachment(attachmentId) {
  console.log('getting attachment')
  const response = await api
    .asApp()
    .requestJira(route`/rest/api/3/attachment/content/${attachmentId}`, {
      headers: {
        Accept: 'application/json',
      },
    })

  console.log(`Response: ${response.status} ${response.statusText}`)
  return await response.json()
}

```

My manifest.yml Permissions (note: I added `read:attachment:jira` as part of troubleshooting, but I don’t think it’s needed?):

```auto
permissions:
  scopes:
    - read:jira-work
    - read:attachment:jira
    - write:jira-work
    - storage:app

```

I have verified that the latest version of @forge/api is installed as well

---

<div class="post-metadata">

**Author:** ![AlexeyKotlyarov](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/alexeykotlyarov/32/45643_2.png) [@AlexeyKotlyarov](https://community.developer.atlassian.com/u/AlexeyKotlyarov)\
**Post date:** [November 10, 2023, 10:05am UTC](https://community.developer.atlassian.com/t/403-blocked-egress-after-updating-mainfest-yml/74492/8 "2023-11-10T10:05:00Z")

</div>

Sorry, I’ve missed one more limitation of the Node runtime that’s likely causing this: the [egress rules for redirects](https://developer.atlassian.com/platform/forge/runtime-reference/native-nodejs-runtime/#apis-that-redirect-to-external-domains).

Requests for Confluence attachments redirect to `https://api.media.atlassian.com/...`, and for now you’ll have to add that domain to your app’s egress permissions.

---

<div class="post-metadata">

**Author:** ![bodrimark](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@bodrimark](https://community.developer.atlassian.com/u/bodrimark)\
**Post date:** [December 11, 2023, 2:56pm UTC](https://community.developer.atlassian.com/t/403-blocked-egress-after-updating-mainfest-yml/74492/9 "2023-12-11T14:56:52Z")

</div>

Hey,  
I seem to get the same error but when I’m using storage.get(). Is there a domain I should include in my manifest.yml to be able to use it in native Node environment?

Cheers, Mark

---

<div class="post-metadata">

**Author:** ![bodrimark](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@bodrimark](https://community.developer.atlassian.com/u/bodrimark)\
**Post date:** [December 11, 2023, 4:00pm UTC](https://community.developer.atlassian.com/t/403-blocked-egress-after-updating-mainfest-yml/74492/10 "2023-12-11T16:00:03Z")

</div>

I’ve created [this](https://community.developer.atlassian.com/t/403-blocked-egress-when-using-forge-storage/75403) so it can be tracked separately from this topic.
