Skip to content

Web proxy not supported in container environment #916

@tylerohlsen

Description

@tylerohlsen

Problem Description

When attempting to run in a network that requires a web proxy, requests fail even though environment variables http_proxy and https_proxy are properly set.

What is actually happening

On startup, a request to https://api.github.com/app/installations?per_page=100 fails with a 500 response and RequestError [HttpError]: read ECONNRESET. This failure cases the process in the container to crash and therefore the container cannot start.

What is the expected behavior

Requests respect the proxy settings and succeed.

Error output, if available

RequestError [HttpError]: read ECONNRESET
    at /opt/safe-settings/node_modules/@octokit/request/dist-node/index.js:157:11
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async hook (/opt/safe-settings/node_modules/@octokit/auth-app/dist-node/index.js:365:18)
    at async Job.doExecute (/opt/safe-settings/node_modules/bottleneck/light.js:405:18) {
  status: 500,
  request: {
    method: 'GET',
    url: 'https://api.github.com/app/installations?per_page=100',
    headers: {
      accept: 'application/vnd.github.v3+json',
      'user-agent': 'probot/13.4.4 octokit-core.js/5.2.0 Node.js/20.19.5 (linux; x64)',
      authorization: 'bearer [REDACTED]'
    },
    request: {
      hook: [Function: bound bound register],
      retryCount: 3,
      retries: 3,
      retryAfter: 16
    }
  }
}

Context

Are you using the hosted instance of probot/settings or running your own?

Running our own

If running your own instance, are you using it with github.com or GitHub Enterprise?

With github.com

Version of probot/settings

probot 13.4.4
safe-settings 2.1.18

Version of GitHub Enterprise

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions