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 14.0.0 - pg does not response

See original GitHub issue

Running a postgres locally

import { Pool } from 'pg';
const pool = new Pool({})

describe('check connexion', () => {
  it('should select 1', async () => {
    const result = await pg.query('SELECT 1 as hey');
    expect(result.rows[0]).toEqual({ hey: 1 });
  });
  afterAll(() => pg.end());
});

Fails with current node 14.0.0 Works on node 12.16.2.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

13reactions
brianccommented, Apr 27, 2020

This is fixed in pg@8.0.3. If you see this happening pg>=8.0.3 please feel free to re-open this issue.

2reactions
mateuspireslcommented, Nov 9, 2020

Oh gosh. I lost 3 days on this problem because I thought it was related to networks in docker containers. Solution worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.JS Heroku Postgres Connection not working
seems to work fine. Doing a bit of research, it seems there are/have been some issues with v14 and pg Node 14.0. 0...
Read more >
pg - npm
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF...
Read more >
Node.JS Heroku Postgres Connection not working-postgresql
Doing a bit of research, it seems there are/have been some issues with v14 and pg Node 14.0.0 - pg does not response...
Read more >
Monitoring Node.js - IBM
The Instana Node.js collector is an npm package that you add to the ... On Cloud Foundry, a configuration is not required at...
Read more >
Previous Releases - Node.js
Version Date V8 npm NODE_MODULE_VERSION Node.js 19.3.0 2022‑12‑14 10.8.168.21 9.2.0 111 Downloads C... Node.js 19.2.0 2022‑11‑29 10.8.168.20 8.19.3 111 Downloads C... Node.js 19.1.0 2022‑11‑14 10.7.193.20 8.19.3...
Read more >

github_iconTop Related Medium Post

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