Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RequestError [HttpError]: request to https://api.github.com/repos/{owner}/{repo} failed, reason: connect ETIMEDOUT #201

Open
2no553 opened this issue Mar 30, 2024 · 0 comments

Comments

@2no553
Copy link

2no553 commented Mar 30, 2024

When I try to run npm run start targeting a GitHub organization in a proxy environment, I encounter the following error and am unsure how to resolve it. If there are any workarounds, could you please advise?

Could not access the GitHub repo
RequestError [HttpError]: request to https://api.github.com/repos/{owner}/{repo} failed, reason: connect ETIMEDOUT IP:443
    at ~\node-gitlab-2-github\node_modules\@octokit\request\dist-src\fetch-wrapper.js:92:15
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Job.doExecute (~\node-gitlab-2-github\node_modules\bottleneck\light.js:405:18) {
  status: 500,
  request: {
    method: 'GET',
    url: 'https://api.github.com/repos/{owner}/{repo}',
    headers: {
      accept: 'application/vnd.github.golden-comet-preview+json',
      'user-agent': 'octokit-rest.js/18.12.0 octokit-core.js/3.5.1 Node.js/20.10.0 (win32; x64)',
      authorization: 'token [REDACTED]'
    },
    request: { hook: [Function: bound bound register] }
  }
}

The HTTP_PROXY setting has been configured in the Windows system environment variables and .gitconfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant