HTTPS_PROXY with HTTP Proxy and google HTTPS URLs does not work.
See original GitHub issueEnvironment details
- OS: all
- Node.js version: 8.11.3
- npm version: 5.6.0
@google-cloud/storage
version: 1.7.0 (1.5.2 is fine)
Steps to reproduce
- Setup HTTP Proxy
- Start NodeJS with ENV
HTTPS_PROXY=http://proxy... node script.js
- upload file to bucket (script.js)
const storage = require('@google-cloud/storage')({
projectId: 'projectid',
keyFilename: 'gcloud.json',
});
const bucketname = 'bucketname';
const bucket = storage.bucket(bucketname);
const file = bucket.file('foo');
const stream = file.createWriteStream();
stream.on('error', console.log);
stream.on('finish', console.log);
stream.end('bar');
Information on the root-cause
nodejs-storage uses
which uses gcs-resumable-upload
which uses axios and the issue:
issues at axios
pullrequest (open since 1 year caused by bad weather
)
Issue Analytics
- State:
- Created 5 years ago
- Comments:25 (15 by maintainers)
Top Results From Across the Web
HTTPS connections over proxy servers - Stack Overflow
The trick is, we turn an HTTP proxy into a TCP proxy with a special command named CONNECT . Not all HTTP proxies...
Read more >HTTPS proxy configuration not working
The infrastructure agent's HTTP/HTTPS proxy configuration is not working. For best proxy results, we recommend using the most recent infrastructure agent.
Read more >Proxy support in Chrome
Specifying an HTTPS proxy is generally not possible through system proxy settings. ... Matches only http:// URLs that are a subdomain of google.com...
Read more >How to Configure Outbound HTTP and HTTPS Proxy for your ...
If the http.nonProxyHosts property is not configured, all web requests will be routed through the proxy. This could break Application Links. For ...
Read more >Using an HTTP proxy - AWS Command Line Interface
To access AWS through proxy servers, you can configure the HTTP_PROXY and HTTPS_PROXY environment variables with either the DNS domain names or IP...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks, I can confirm, that this is working like a breeze. 👍
I’m going to close, but please comment back if things are 👎