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.

HTTPS_PROXY with HTTP Proxy and google HTTPS URLs does not work.

See original GitHub issue

Environment 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

  1. Setup HTTP Proxy
  2. Start NodeJS with ENV
HTTPS_PROXY=http://proxy... node script.js
  1. 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:closed
  • Created 5 years ago
  • Comments:25 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
refextucommented, Jan 30, 2019

Thanks, I can confirm, that this is working like a breeze. 👍

2reactions
stephenpluspluscommented, Jan 30, 2019

I’m going to close, but please comment back if things are 👎

Read more comments on GitHub >

github_iconTop 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 >

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