Hello,
I’m running into a problem trying to get configuration of a custom field. Requests fail on this bit of code:
const fieldId = "customfield_10051";
const config = await api.asApp().requestJira(
route`/rest/api/3/app/field/${fieldId}/context/configuration`,
{
headers: {
Accept: "application/json",
},
},
);
And this is the error I get in the tunnel console:
ERROR 12:23:19.165 e9019845-5d46-4550-bd1a-f9857bcc50e0 Error in handler getFieldConfig PROXY_ERR: Forge platform failed to process runtime HTTP request - 400 - INVALID_TARGET_URL
at handleProxyResponseErrors (webpack:///node_modules/.pnpm/@forge+api@3.8.0_@swc+core@1.4.1/node_modules/@forge/api/out/api/fetch.js:84:1)
at <anonymous> (webpack:///node_modules/.pnpm/@forge+api@3.8.0_@swc+core@1.4.1/node_modules/@forge/api/out/api/fetch.js:29:1)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 400,
errorCode: 'INVALID_TARGET_URL'
}
It’s notable that just entering the URL from the request into a browser returns the configuration just fine.
The error seems similar to the one discussed here: Proxy error in development and staging when calling Confluence attachments API with requestConfluence
Could I get some assitance, please?