nodejs-storage: HTTPS_PROXY with HTTP Proxy and google HTTPS URLs does not work.

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)

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 25 (15 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks, I can confirm, that this is working like a breeze. šŸ‘

I’m going to close, but please comment back if things are šŸ‘Ž

Greetings @hgardneriv! Could we trouble you to put this into a new issue? Sometimes its hard for us to track things in closed / old issues like this 😃 Thanks!

Will do!