crystal icon indicating copy to clipboard operation
crystal copied to clipboard

I can't get it work with brianc/node-pg-copy-streams with debug info turned on

Open pencilcheck opened this issue 3 years ago • 1 comments

Summary

I'm not sure if this is in progress or if it is a bug, but somehow I am getting postgraphile error when I am using brianc/node-pg-copy-streams to copy a file to a table using "COPY table FROM STDIN" with the debug info on (you can find the detail in the gist but basically I appended the DEBUG flag in front of the command to set the env var.

The error is https://gist.github.com/pencilcheck/dea9edc251ef919395ab816524dfb723

Something with file stream I guess from STDIN. I'm not sure about the detail but this is frustrating because I can do this by taking out postgraphile but the moment I turn postgraphile on this error occurs.

---- edit ------ I narrow down to this DEBUG=postgraphile*. It sucks that I can't see debug info while using node-pg-copy-streams.

Additional context

pencilcheck avatar Dec 04 '20 08:12 pencilcheck

PR welcome; the issue likely exists in https://github.com/graphile/postgraphile/blob/af39c3dcea40646c9217785fa93a9601612c2b83/src/postgraphile/withPostGraphileContext.ts#L466

benjie avatar Dec 04 '20 13:12 benjie

[semi-automated message] Hi, there has been no activity in this issue for a while so I'm closing it to keep the issues/pull requests manageable. If you're interested in taking on this issue, please comment so I can assign you.

benjie avatar Oct 05 '23 07:10 benjie