question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

yo easy-ui5 project - Fails when behind corporate proxy

See original GitHub issue

When behind the corporate proxy the generator fails with the following error: Failed to connect to GitHub to retrieve available repository for "ui5-community" organization! Run with --verbose for details! RequestError [HttpError]: request to https://api.github.com/orgs/ui5-community/repos failed, reason: connect ECONNREFUSED 52.63.231.178:443 at C:\Users\sattsaevk\AppData\Roaming\npm\node_modules\generator-easy-ui5\node_modules\@octokit\request\dist-node\index.js:108:11 at processTicksAndRejections (internal/process/task_queues.js:95:5) at async module.exports.prompting (C:\Users\sattsaevk\AppData\Roaming\npm\node_modules\generator-easy-ui5\generators\app\index.js:108:18) { status: 500, request: { method: 'GET', url: 'https://api.github.com/orgs/ui5-community/repos', headers: { accept: 'application/vnd.github.v3+json', 'user-agent': 'generator-easy-ui5:3.0.1 octokit-rest.js/18.6.7 octokit-core.js/3.5.1 Node.js/14.17.0 (win32; x64)' }, request: { hook: [Function: bound bound register] } } }

The 'npm config proxy ’ has been added but does not solve the issue.

// create the octokit client to retrieve the generators from GH org const octokit = new Octokit({ userAgent: ${this.rootGeneratorName()}😒{this.rootGeneratorVersion()}, auth: this.options.ghAuthToken, });

Needs to be passed on a proxy?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
petermuessigcommented, Feb 1, 2022

IMO, we should make the node proxy configuration available to the internally used Octokit APIs. I’ll try to investigate this asap.

1reaction
uxkjaercommented, Jul 22, 2021

The issue is not Octokit, this works fine. However yeoman has a problem with the proxy. It doesn’t use the http_proxy / https_proxy env variables.

You can try cmd yo doctor and this should also fail Set the GLOBAL_AGENT_HTTP_PROXY variable to your proxy and it should work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · SAP/generator-easy-ui5 - GitHub
Meta-generator various project types within the UI5 Universe - Issues ... yo easy-ui5 project - Fails when behind corporate proxy good first issue...
Read more >
Using 'fiori-tools-proxy' behind a corporate proxy not working ...
The error is located in the "isHostExcludedFromProxy" function. Here it is checked whether the coporate proxy is necessary for the URL set in ......
Read more >
unable to verify the first certificate when running npm install
The issue is ultimately related to my machine being behind some corporate proxy which seems to be related to npm unable to authenticate ......
Read more >
End-To-End setup of local development environment with VS ...
npm install -g yo – Yeoman helps you to kickstart new projects, ... Documentation; npm install -g yo generator-easy-ui5 – This Package ...
Read more >
HjT - River Thames Conditions - Environment Agency - GOV.UK
Solapur municipal corporation history, Military base in oceanside california, ... Shitteru yo meaning, Vv rozenburg programma, List of f1 tv broadcasters, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found