I want to test my app on Bitbucket but keep receiving this error message:
[REQUEST_EGRESS_ALLOWLIST_ERR: URL not included in the external fetch backend permissions: /2.0/repositories/%7B00bddc61-1a84-4dc2-a763-a67c64b487b6%7D/%7Ba7e503ac-5bf7-42c9-91b7-5b385b130a97%7D. Visit go.atlassian.com/forge-egress for more information.]
I have visited the link and tried all of the solutions provided but still receive this error message.
Here’s my manifest.yml:
> modules:
> bitbucket:repoCodeOverviewCard:
> - key: bitbucket-app-hello-world-repository-code-overview-card
> resource: main
> resolver:
> function: resolver
> render: native
> title: BitBucket_app for Lawrence
> function:
> - key: resolver
> handler: index.handler
> resources:
> - key: main
> path: src/frontend/index.jsx
> app:
> runtime:
> name: nodejs20.x
> id: ari:cloud:ecosystem::app/52bb6560-caf0-42f8-b727-4596e761556e
>
> permissions:
> scopes:
> - read:repository:bitbucket
> external:
> fetch:
> backend:
> - remote: remote-backend
>
> remotes:
> - key: remote-backend
> baseUrl: "https://bitbucket.org/borenlawrence/bitbucket_app/src/Git/"
> operations:
> - fetch
And this is my index.js:
import api, { route } from "@forge/api";
import Resolver from "@forge/resolver";
const resolver = new Resolver();
resolver.define("fetchRepository", async ({ context }) => {
const workspaceId = context.workspaceId;
const repositoryId = context.extension.repository.uuid;
console.log(`Fetching repository ${workspaceId}/${repositoryId}`)
const res = await api
.asApp()
.requestBitbucket(
route`/2.0/repositories/${workspaceId}/${repositoryId}`
);
return res.json();
});
export const handler = resolver.getDefinitions();
Much help would be appreciated.