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.

pg-query-stream fails with 7.5.0

See original GitHub issue

Using pg 7.4.3, works great.

Upgraded to 7.5.0 this morning and getting this stack trace:

/usr/lib/node_modules/@scriptollc/search-crawler/node_modules/pg/lib/client.js:277
    if (self.activeQuery.name) {
                         ^

TypeError: Cannot read property 'name' of null
    at Connection.<anonymous> (/usr/lib/node_modules/@scriptollc/search-crawler/node_modules/pg/lib/client.js:277:26)
    at emitOne (events.js:116:13)
    at Connection.emit (events.js:211:7)
    at Socket.<anonymous> (/usr/lib/node_modules/@scriptollc/search-crawler/node_modules/pg/lib/connection.js:124:12)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at TCP.onread (net.js:597:20)

The query being run is a very simple

format(`SELECT * FROM %I`, tableName)

Doesn’t matter which table in our database we use.

Happy to assist with anything you might need!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
brianccommented, Oct 8, 2018

please feel free to reopen if the fix in pg-query-stream doesn’t fix your issue.

0reactions
brianccommented, Oct 23, 2018

happy to help!

On Tue, Oct 23, 2018 at 9:35 AM Todd Kennedy notifications@github.com wrote:

super late to say thank you but thank you!

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/brianc/node-postgres/issues/1742#issuecomment-432271351, or mute the thread https://github.com/notifications/unsubscribe-auth/AADDoZdDqBhcfHzk4dxnk1gE2oLBtI8Nks5unykugaJpZM4XHAE8 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not compatible with pg 7.50 · Issue #46 · brianc/node-pg-query-stream
This module became incompatible with pg's 'minor' update 7.5.0. Here you can see changes in query.submit function - it now returns null or...
Read more >
pg-query-stream - npm
Postgres query result returned as readable stream. ... Start using pg-query-stream in your project by running `npm i pg-query-stream`.
Read more >
Technical Notes 101 - QRadar 101 - IBM
QRadar support team technical notes, problem resolutions, and troubleshooting content, to provide expert knowledge to users.
Read more >
https://gitee.com/opengauss/openGauss-connector-no...
pg -query-stream/test/async-iterator.ts | 116 + . ... your own promise"](https://github.com/brianc/node-postgres/pull/1518) + +### 7.5.0 + +- Better [error ...
Read more >
Azure PowerShell release notes - Microsoft Learn
Added error message in the command Register-AzStackHCI if Arc is not ... Added new cmdlet to support query Load Balancer inbound nat rule ......
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