You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I set PGSSLMODE to require or prefer, I get TypeError: this.stream.write is not a function error when I try to run the tests under packages/pg. What could be the cause of this error? This error message is very cryptic. Have others seen this before?
Error log: (replaced full project path with simplified path)
throw-in-type-parser-tests.js
emits error FAILED!
TypeError: this.stream.write is not a function
at Connection.requestSsl (JavascriptDriverTest/packages/pg/lib/connection.js:122:17)
at Connection.<anonymous> (JavascriptDriverTest/packages/pg/lib/client.js:119:13)
at Connection.emit (node:events:517:28)
at Object.makeClient [as client] (JavascriptDriverTest/packages/pg/test/unit/client/test-helper.js:15:21)
at Test.action (JavascriptDriverTest/packages/pg/test/unit/client/throw-in-type-parser-tests.js:39:23)
at Test._run (JavascriptDriverTest/packages/pg/test/suite.js:32:19)
at Test.run (JavascriptDriverTest/packages/pg/test/suite.js:14:12)
at Suite.run (JavascriptDriverTest/packages/pg/test/suite.js:57:10)
at JavascriptDriverTest/node_modules/async/dist/async.js:4099:9
at Object.process (JavascriptDriverTest/node_modules/async/dist/async.js:2347:17)
xargs: node: exited with status 255; aborting
make: *** [test-unit] Error 124
npm ERR! Lifecycle script `test` failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: [email protected]
npm ERR! at location: JavascriptDriverTest/packages/pg
The text was updated successfully, but these errors were encountered:
alinaliBQ
changed the title
TypeError: this.stream.write is not a function when PGSSLMODE is set to use SSLTypeError: this.stream.write is not a function error when PGSSLMODE is set to use SSL
Aug 14, 2024
The tests aren’t currently written to be runnable with PG* environment variables. You might have better luck with make test-all connectionString=postgres://localhost:5432/?sslmode=require.
When I set
PGSSLMODE
torequire
orprefer
, I getTypeError: this.stream.write is not a function
error when I try to run the tests underpackages/pg
. What could be the cause of this error? This error message is very cryptic. Have others seen this before?Error log: (replaced full project path with simplified path)
Commands to reproduce this error:
System: CentOS
The text was updated successfully, but these errors were encountered: