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
- 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
)
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 25 (15 by maintainers)
Thanks, I can confirm, that this is working like a breeze. š
Iām going to close, but please comment back if things are š
Will do!