Hi
I am trying to call the bit bucket API from the forge App. I tried testing with a different API still getting the same error
Ex--
const data = await api.asApp().requestBitbucket(route`/2.0/repositories`, {
method: "GET",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
},
});
PROXY_ERR: Forge platform failed to process runtime HTTP request - 400 - INVALID_TARGET_URLat null.handleProxyResponseErrors (webpack://product-trigger/node_modules/@forge/api/out/api/fetch.js:84:1)at null.<anonymous> (webpack://product-trigger/node_modules/@forge/api/out/api/fetch.js:29:1)at processTicksAndRejections (internal/process/task_queues.js:95:5)at Object.run (webpack://product-trigger/src/index.jsx:32:1)at async r.<computed> (/tmp/tunnel-114967-qgFrxMSN6RPv/index.cjs:2:139869)at async process.<anonymous> (/home/beehyv/.nvm/versions/node/v14.21.3/lib/node_modules/@forge/cli/node_modules/@forge/tunnel/out/sandbox/sandbox-runner.js:7:20) {status: 400,errorCode: 'INVALID_TARGET_URL'} Error Occured
Hi Rishabh and welcome to the community!
This page has some example apps for Bitbucket:
Links are provided with the source code of these apps so you can see how API calls can be made.
If you are still experiencing issues, please join this group and post your question there:
This group is specifically for Forge with Bitbucket Cloud.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.