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.

GLOBAL_AGENT.HTTP_PROXY configuration value: URL protocol must be http:

See original GitHub issue

Preflight Checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Issue Details

  • Electron Packager Version:
    • 14.2.1, 15.4.0
  • Electron Version:
    • 17.1.2
  • Operating System:
    • Ubuntu 20.04 x64
  • Last Known Working Electron Packager version:
    • 13.1.1

Expected Behavior

Building Win32 packages from my Ubuntu machine (with Wine installed) using electron-packager . --platform=win32 --out=./builds Should get me Win32 artifacts in the ./builds folder.

Actual Behavior

Building Win32 packages from my Ubuntu machine (with Wine installed) using electron-packager . --platform=win32 --out=./builds results in error message: Unsupported GLOBAL_AGENT.HTTP_PROXY configuration value: URL protocol must be “http:”. The error originated from global-agent which is an optional dependency of @electron/get.

To Reproduce

  1. find a Linux machine, create an empty nodeJS project, setup a barebone package.json
  2. put the following in package.json “devDependencies”: { “electron”: “^17.1.2”, “electron-devtools-installer”: “^3.2.0”, “electron-packager”: “^15.4.0” }
  3. try npx electron-packager . --platform=win32 --out=./builds, you shoule see the error message

Additional Information

Debug info attached below: electron-packager Electron Packager 15.4.0 electron-packager Node v14.17.5 electron-packager Host Operating system: linux 5.13.0-30-generic (x64) +0ms electron-packager Packager Options: {“_”:[“.”],“platform”:“win32”,“out”:“./builds”,“deref-symlinks”:true,“derefSymlinks”:true,“download”:{“rejectUnauthorized”:true,“reject-unauthorized”:true},“junk”:true,“prune”:true,“dir”:“.”,“protocols”:[]} +2ms electron-packager Target Platforms: win32 +1ms electron-packager Target Architectures: x64 +0ms electron-packager Requiring author in package.json, as CompanyName was not specified for win32metadata +0ms electron-packager Inferring application name from name in {omitted}/package.json +13ms electron-packager Inferring appVersion from version in {omitted}/package.json +0ms electron-packager Inferring target Electron version from electron in {omitted}/package.json +5ms electron-packager Application name: {omitted} +18ms electron-packager Target Electron version: 17.1.2 +0ms electron-packager Ignored path regular expressions: [ ‘/package-lock\.json$’, ‘/yarn\.lock$’, ‘/\.git($|/)’, ‘/node_modules/\.bin($|/)’, ‘\.o(bj)?$’, ‘/tmp/electron-packager’ ] +0ms electron-packager Downloading Electron with options {“rejectUnauthorized”:true,“reject-unauthorized”:true,“platform”:“win32”,“arch”:“x64”,“version”:“17.1.2”,“artifactName”:“electron”} +0ms Unsupported GLOBAL_AGENT.HTTP_PROXY configuration value: URL protocol must be “http:”.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
BlackHole1commented, Mar 14, 2022

I’ve found the problem, please wait. I will submit a PR later

0reactions
electron-botcommented, Mar 14, 2022

🎉 This issue has been resolved in version 1.14.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

GLOBAL_AGENT.HTTP_PROXY configuration value: URL ...
HTTP_PROXY configuration value : URL protocol must be "http:". The error originated from global-agent which is an optional dependency of @electron/get.
Read more >
URL protocol must be "http:" when running electron-packager ...
HTTP_PROXY ` configuration value: URL protocol must be "http:". The command that I ran is: npx electron-packager . dodge-them-all --overwrite -- ...
Read more >
Global HTTP/HTTPS Proxy Configurable using Environment ...
The GLOBAL_AGENT_NO_PROXY environment variable specifies a pattern of URLs that should be excluded from proxying. GLOBAL_AGENT_NO_PROXY value is a comma- ...
Read more >
Electron本地打包报错Unsupported GLOBAL_AGENT ...
Unsupported GLOBAL_AGENT.HTTP_PROXY configuration value: URL protocol must be "http:"
Read more >
https-proxy-agent - npm
An HTTP(s) proxy `http.Agent` implementation for HTTPS. ... Start using https-proxy-agent in your project by running `npm i https-proxy-agent`.
Read more >

github_iconTop Related Medium Post

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