node-oracledb icon indicating copy to clipboard operation
node-oracledb copied to clipboard

oracledbinstall.js http proxy username/password not support

Open RaphaelMui opened this issue 8 years ago • 4 comments

I was trying to install the node_oracledb prebuild binaries. My computer accesses the internet via http/https proxy which require username/password authentication.

My proxy settings are,

> export http_proxy=http://USERNAME:[email protected]:8080
> export https_proxy=http://USERNAME:[email protected]:8080

I found that the installation failed when running 'node package/oracledbinstall.js' which tried to download oracledb-v2.2.0-node-v59-win32-x64.gz

> node package/oracledbinstall.js
oracledb Beginning installation
oracledb Verifying installation
oracledb Continuing installation
oracledb ERR! NJS-054: Binary build/Release/oracledb.node was not installed.
oracledb ERR! Failed to install binary package oracledb-v2.2.0-node-v59-win32-x64.gz
oracledb ERR! Error: HTTP proxy request for github.com/oracle/node-oracledb/releases/download/v2.2.0/oracledb-v2.2.0-node-v59-win32-x64.gz failed with code 407

From the source code of oracledbinstall.js, it seems that http username and password are not supported.

  1. What is your Node.js version? Is it 64-bit or 32-bit? Run version.js from https://github.com/oracle/node-oracledb/blob/master/examples/version.js v9.11.1
  2. What is your node-oracledb version? 2.2.0
  3. What is your Oracle client (e.g. Instant Client) version? Is it 64-bit or 32-bit? How was it installed? Where is it installed? Instanctclient_12_2
  4. What is your Oracle Database version? 11gR2
  5. What is your OS and version? Ubuntu 18.04

RaphaelMui avatar May 03 '18 08:05 RaphaelMui

There's a PR that may help this. The PR can't be merged because it hasn't been properly signed off. Or you may want to contribute a clean PR. See https://github.com/oracle/node-oracledb/pull/810

cjbj avatar May 03 '18 09:05 cjbj

I have the same error

Nebotov avatar Jul 25 '18 14:07 Nebotov

@Nebotov code supporting this has been merged to the master branch but there has been no release yet - you will need to build it yourself in the meantime.

cjbj avatar Jul 25 '18 23:07 cjbj

The problem solved in node-oracledb version 3.0

RaphaelMui avatar Nov 23 '18 14:11 RaphaelMui