Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error on parsing bind message: null" when using node-postgres driver #1630

Open
angkor-wat opened this issue Jun 15, 2024 · 0 comments
Open

Comments

@angkor-wat
Copy link

ArcadeDB Version:

ArcadeDB Server v23.6.1 (build 0eba746edfdf65b4a2dc483bfc5435bca397e55f/1688529756647/main)

OS and JDK Version:

Running on Linux 2.6.32-431.el6.x86_64 - Java HotSpot(TM) 64-Bit Server VM 11.0.19 (18.9)

Expected behavior

return data rows

Actual behavior

catch ERROR: Error on parsing bind message: null at d:\teamwork\portal\node_modules\pg-pool\index.js:45:11 at process.processTicksAndRejections (d:\teamwork\portal\lib\internal\process\task_queues.js:95:5) at async Object.<anonymous> (D:\teamwork\portal\app\routes\signin.js:44:21) {length: 56, name: 'error', severity: 'ERROR', code: 'XX000', detail: undefined, …}

Sample Code

const {Pool} = require("pg"); try{ const pool = new Pool({ host: 'XXX.XXX.XXX.XXX', port: 5432, password: 'XXX', user: 'root', database: 'mydb', }) const res = await pool.query('select from User where id=$1',['test']); console.log(res.rows[0]); }catch(error){ console.error(error); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant