question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Node version 14 exists without error on pool.query

See original GitHub issue
const { Pool } = require('pg')
    const pool = new Pool({
        ssl: {
            rejectUnauthorized: false,
        }
    })
const na = await pool.query( "text " ).then( .. ).catch( .. )
console.log(' this line never prints ')

On node version 14, the process exits without printing any connection error(s), but on node 12 it works as expected.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
charmandercommented, May 23, 2020

pg ≤ 8.0.2 doesn’t support Node 14. Please upgrade to pg 8.2.1.

0reactions
dnc-scgcommented, May 25, 2020

Thank you 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

NodeJs and node-postgres code is not returning any ...
The current versions of node-postgres and pg-promise are not compatible with the latest version of node. I was using Node 14.
Read more >
pg.QueryResult JavaScript and Node.js code examples
pgPool.connect((err, client, done) => { if (err) {console.error(err);} client.query('SELECT EXISTS (SELECT 1 FROM information_schema.tables WHERE ...
Read more >
node-oracledb 5.5.0 Documentation for the Oracle Database ...
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT...
Read more >
Node.js and MySQL Complete Tutorial - CodeForGeek
In this Node js and MySQL tutorial, we are going to learn how to connect Node js server with MySQL database. We will...
Read more >
Database Engine events and errors - SQL Server
Too many table names in the query. The maximum allowable is %d. 107, 15, No, The column prefix '%.*ls' does not match with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found