24. Troubleshooting Errors
Use the troubleshooting information documented in this section to address errors that may appear while installing or using node-oracledb in Thin or Thick mode.
Questions about node-oracledb can be asked in GitHub Discussions or posted on Slack (link to join Slack).
24.1. Installation Errors
You may encounter issues while installing node-oracledb. Ensure that you have installed the node-oracledb prerequisites. Review the error messages closely.
If there is a network connection error, check if you need to use
npm config set proxy
, or set proxy environment variables such ashttp_proxy
and/orhttps_proxy
.Use
npm install --verbose oracledb
. Review your output and logs.If the installation problem still persists, then try to install node-oracledb in a different way. Google anything that looks like an error. Try some potential solutions.
Try running
npm cache clean -f
and deleting thenode_modules/oracledb
directory.
24.2. Error Messages
Some common DPI and NJS errors with node-oracledb Thin and Thick modes are detailed in this section. Each error includes information about the probable cause and the recommended action which may resolve the error.
24.2.1. DPI Error Messages
The error messages with prefix DPI
are generated by the
ODPI-C code which is used by the
node-oracledb Thick mode.
24.2.1.1. DPI-1047
Message |
|
---|---|
Cause |
Initializing node-oracledb Thick mode failed because the Oracle Client library could not be loaded. |
Action |
You can:
|
24.2.1.2. DPI-1072
Message |
|
---|---|
Cause |
The connection to Oracle Database failed because the Oracle Client library version used is not supported by node-oracledb Thick mode. The Thick mode needs Oracle Client libraries 11.2 or later. Note that version 19 is not supported on Windows 7. |
Action |
Review the installation requirements. You can either:
|
24.2.2. NJS Error Messages
The node-oracledb Thin mode code and node-oracledb Thick mode code
generates error messages with the prefix NJS
.
24.2.2.1. NJS-116
Message |
|
---|---|
Cause |
Connecting to Oracle Database with node-oracledb Thin mode failed because your user account was only created with a 10G password verifier. The node-oracledb Thin mode supports password verifiers 11G and later. See Password Verifier Support. |
Action |
You can either:
|