Hello,
After updating the manifest file with
app:
id: <>
runtime:
name: nodejs18.x
I get an error for the App:
There was an error invoking the function - URL not included in the external fetch backend permissions: /rest/api/content/531488694207524/property/forge-402c893d-d7d3-49dc-b039-e4dc67cf147e-tempProp. Visit go.atlassian.com/forge-egress for more information.
So I followed the link and I added the following to my permissions:
external:
fetch:
backend:
- "*.atlassian.net"
- "*.atlassian.com"
- "*.softcomply.com"
- "*.softcomply.net"
images:
- "*.softcomply.net"
- "*.api.atlassian.com"
- "*.atlassian.com"
- "*.softcomply.com"
- "*.atlassian.net"
But it makes no difference.
The App does not make any particular external call and has worked fine for years.
Thanks for any suggestion!
Matteo
2 Likes
@MatteoGubelliniSoftC Did you forge install --upgrade
after the deploy?
1 Like
Hi @nmansilla
I’m facing the same issue. When I changed the runtime to nodejs18.x from sandbox, calling Confluence API started to fail.
I think no external scope is needed to call Confluence APIs.
error
Error: There was an error invoking the function - URL not included in the external fetch backend permissions: /wiki/api/v2/spaces/181567490. Visit go.atlassian.com/forge-egress for more information.
source code
import Resolver from '@forge/resolver';
import api, { route } from '@forge/api';
const resolver = new Resolver();
resolver.define('getXXXXX', async ({ payload }) => {
const spaceResponse = await api.asUser().requestConfluence(route`/wiki/api/v2/spaces/${payload.id}`);
manifext.yml
app:
id: ari:cloud:ecosystem::app/xxxxxxxxxxxxxxxxxx
runtime:
name: nodejs18.x
permissions:
scopes:
- read:confluence-content.summary
- read:confluence-space.summary
- read:content-details:confluence
- write:confluence-content
- search:confluence
- read:space:confluence
- read:page:confluence
- write:page:confluence
- delete:page:confluence
- read:confluence-groups
- manage:confluence-configuration
- read:user.property:confluence
- write:user.property:confluence
content:
styles:
- 'unsafe-inline'
scripts:
- 'unsafe-inline'
external:
images:
- '*'
I found that updating @forge/api to the latest resolved this issue. 
1 Like
It worked for me when I updated Node.js instead… 
1 Like