I am trying to setup a simple function in my Forge app to comment on behalf of users (impersonate user). The app can comment as me when given my ID however when I try with another user we keep getting PROXY_ERR: Forge platform failed to process runtime HTTP request - 500 - PROXY_SERVER_FAILURE?
Since it’s working for me and the other user can manually comment on our test ticket I don’t believe it’s a permissions or scope issue. But maybe I’m wrong?
permissions:
scopes:
read:jira-user:
allowImpersonation: true
read:jira-work:
allowImpersonation: true
write:jira-work:
allowImpersonation: true
This is where I attempt in my function to comment as the user and get an error:
const response = await api.asUser(userAccountId).requestJira(
route`/rest/api/3/issue/${issueKey}/comment`,
{
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify(commentBody)
}
);
I’ve triple checked and the accountID being passed is correct. Does anyone know why this proxy error keeps happening?