Skip to content

Error parsing tnsnames.ora file in thin mode with Easy Connect String entries #1644

@sosoba

Description

@sosoba
  1. What versions are you using?

6.3.0

  1. Is it an error or a hang or a crash?

Error

  1. What error(s) or behavior you are seeing?
TypeError: Cannot read properties of null (reading 'name')
    at createNode (oracledb\lib\thin\sqlnet\connStrategy.js:167:22)
    at resolveAddress (oracledb\lib\thin\sqlnet\networkSession.js:96:10)
  1. Include a runnable Node.js script that shows the problem.

tnsnames.ora:

XE = tcp://localhost/XE

test.js

import oracledb from 'oracledb';
await oracledb.getConnection({connectionString: 'XE', user: 'nobody', password: 'empty'});

The connection is established correctly via oracledb thick mode same as sqlplus, SqlDeveloper, ojdbc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions