407 Proxy Authentication Required error using requestJira

Picked up a previously working project after about a year. Upgraded to forge CLI to 10.7.0. Using forge tunnel, when I refresh the hosting page, I am getting a 407 Proxy Authentication Required as the response from

const response = await api.asApp().
    requestJira(route`/rest/api/3/group/member?groupId=<groupid>`, 
    {
      headers: 
      {
        'Accept': 'application/json'
      }
    });

The page returns the same error outside of the tunnel as well. Seen before?

Welcome to the Atlassian developer community @Bill1,

The syntax for the API endpoint is wrong. You have <groupid> (angle brackets), but the variable replacement syntax in JavaScript is ${groupid} (curly braces). Of course, there should also be a variable named groupid in scope of the requestJira call.

I replaced the group id for this post, in reality the code has

groupId=5a2e84c1-cc77-4b56-8c09-d525d1af67c9

Prior, I had

...groupname=Developers

which was working a year ago. I just switched to groupId in an effort to get this working.

Changing it to

groupId={5a2e84c1-cc77-4b56-8c09-d525d1af67c9}

returns the same auth error. For simplicity, I will go back to

.../member?groupname=Developers

which also continues to have the same error.

1 Like

Hey @Bill1, what version of the @forge/api package are you using? If you are using an old version of the package, it maybe worthwhile updating it as it will no longer work with the current runtime.