Pg-promise: 'Invalid or missing stream object' with 6.3.7 and Node 6/7

Created on 7 Aug 2017  路  9Comments  路  Source: vitaly-t/pg-promise

I just noticed Massive's results streaming tests start failing after upgrading to 6.3.7 with Node versions 6 and 7 (8 is somehow fine). It looks like pg-query-stream released version 1.1.0 today, and QueryStream's state property moved under cursor. Some other changes too; notably context in the pg-promise test/streamSpec is no longer defined.

dependency issue

Most helpful comment

I can see that QueryStream 1.1.0 is a complete breaking change from 1.0.0, should have been 2.0.0 instead.

All 9 comments

I don't see how pg-promise update from 6.3.6. to 6.3.7 could break anything.

Only the update of QueryStream from 1.0.0 to 1.1.0 could have done it.

I suppose you can continue using version 1.0.0 of it, till pg-promise is updated to support the latest version?

I can see that QueryStream 1.1.0 is a complete breaking change from 1.0.0, should have been 2.0.0 instead.

The 6.3.7 upgrade itself didn't break anything -- the build passed on the dependency update. It's just pg-query-stream. I expect it'll be breaking your build soon too though, since you depend on 1.x :)

I have released v6.3.8 just to avoid the dependency issue.

@dmfay you can set it as the new dependency ;)

I've tried to do a quick fix on the new version of pg-query-stream, but it didn't work. I will need to spend a bit more time with it.

There some issues there: https://github.com/brianc/node-pg-query-stream/issues/28

So I wouldn't rush trying to support the latest, especially considering that version 1.1 doesn't fix any issues, just refactors for ES6, while breaking some existing functionality, as evident.

Thanks! :)

I'm going to wait till Brian follows up on this: https://github.com/brianc/node-pg-query-stream/issues/30, before making any changes that is.

Replacing this issue with #383.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cortopy picture cortopy  路  5Comments

cmelone picture cmelone  路  3Comments

seanh1414 picture seanh1414  路  4Comments

msjoshi picture msjoshi  路  4Comments

blendsdk picture blendsdk  路  3Comments