We’ve started seeing the following error in the development
and staging
environments (production
is fine) when calling the Confluence attachments API with requestConfluence
:
message: 'Forge platform failed to process runtime HTTP request - 400 - INVALID_TARGET_URL',
name: 'PROXY_ERR',
status: 400
The code triggering this (which runs fine in production
):
const response = await api.asUser().requestConfluence(route`/wiki/rest/api/content/${pageId}/child/attachment/${imgId}/download`, {
headers: {
'method': 'HEAD'
}
});
Has anyone encountered something similar and/or have any suggestions on how to debug further?
Thanks