-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
Answer the following questions:
- What is your Node.js version? Is it 64-bit or 32-bit? Run
version.jsfrom https://github.com/oracle/node-oracledb/blob/master/examples/version.js
Node.js version: 6.9.1, 64-bit
- What is your node-oracledb version?
Node-oracledb version: 2.3.0
- What exact command caused the problem (e.g. what command did you try to install with)? Who were you logged in as?
npm run start
MacOS version: 10.13.6
- 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?
- What is your Oracle Database version?
I am not sure, I just tried to use this guide: https://oracle.github.io/node-oracledb/INSTALL.html#instosx and although the app runs and I can debug, I get the error above.
- What is the
PATHenvironment variable (on Windows) orLD_LIBRARY_PATH(on Linux) set to? On macOS, what is in~/lib?
- What Oracle environment variables did you set? How exactly did you set them?
I am not sure exactly
- Do you have a small, single Node.js script that immediately runs to show us the problem?
Unfortunately no but here is some code:
Top of my oracle.js file with create pool function (code formatting not working here for me so using screenshot):

Connect:
` connect() {
var connAttrs = (this.creds.poolAlias) ? this.creds.poolAlias : this.creds;
return oracledb.getConnection(connAttrs)
.catch((err) => {
debug('connect failed');
if (_.isUndefined(this.creds.poolAlias)) {
throw new Error(err);
}
else {
return this._catchPoolErr(err, this.creds.poolAlias)
.then(() => {
this.connect();
});
}
});
},`
Try to createPool if does not exist:
` _catchPoolErr(err, poolAlias) {
// connection pool not found. create and reconnect
if (err.toString().match('NJS-047')) {
debug(`connection pool ${poolAlias} not found. Will request creation`);
return this.createPool(poolAlias);
}
else {
throw new Error(err);
}
}`


