Help with forge and corporate proxy

Hello everybody, I new on Jira Dev!

I need help with Forge.

We needed set proxy on forge for use the command login “forge login”. Actually when intent this command, the prompt show the next message: “request to https:// api.atlassian.com / graphql failed, reason: read ECONNRESET”, but when put the link on the browser, this opened without problem.

I think that error is in the firewall, but this link permitted in the rules. In addition, this process works on another pc out of corporate network.

Sorry for my bad English.

This is the show on prompt.

C:\Windows\system32>forge login --verbose
Log in to your Atlassian account
Press Ctrl+C to cancel.

? Enter your email: xxxxxx@xxxxxxx.com.mx

Next, enter your Atlassian API token. If you don't have a token, visit this URL to create one:
xxxxxxxxxxxxxx/api-tokens

? Enter your Atlassian API token: [hidden]

Logging you in...

  ▶️  GraphQL https: // api . atlassian . com / graphql
Query:
        query forge_cli_getUserDetails {
          me {
            user {
              name
              accountStatus
              accountId
            }
          }
        }

Variables: {}
  **request to https: // api . atlassian . com / graphql failed, reason: read ECONNRESET**

Error: We couldn't log you in with those credentials. Check your email address and token before rerunning the command.

And this my settings on forge.

Setting │ Description │ Value
usage-analytics │ Allow Forge to collect CLI usage and error reporting information │ true

Thanks for any help.
Specs:

Corporate proxy
Corporate firewall
O.S. Windows 10

P.D.
I inserted white space for the url, I’m only allowed two links
2022-01-27T08:00:00Z

Hi @ILedezma,

You can try FORGE_GRAPHQL_GATEWAY variable as proxy on Forge and see if it works.
Something like that maybe: FORGE_GRAPHQL_GATEWAY="https://www.examplecorporateproxy.com?url=http://api.atlassian.com/graphql"

2 Likes

Hi!

Thanks for answering.

I set the new variable in to environment, and the error message change:

Logging you in...

  ▶️  GraphQL **http://xxx.xx.xx.xxx:80?http://api.atlassian.com/graphql**
Query:
        query forge_cli_getUserDetails {
          me {
            user {
              name
              accountStatus
              accountId
            }
          }
        }
Variables: {}

**> Server error: undefined, requestId=unknown**

Error: We couldn't log you in with those credentials. Check your email address and token before rerunning the command.

Error: We couldn't log you in with those credentials. Check your email address and token before rerunning the command.
    at loginCommandHandler (C:\Users\il_admin\AppData\Roaming\npm\node_modules\@forge\cli\out\command-line\register-authentication-command.js:41:65)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Command.actionProcessor (C:\Users\il_admin\AppData\Roaming\npm\node_modules\@forge\cli\out\command-line\command.js:76:32)

Thanks for you time.

Do you have any solution?