-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
invalid startup packet layout: expected terminator as last byte #63
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
Comments
I don't know if it helps but here is the value of the buffer.toString(), inserted after line 69-72 of connection.js: 9usern[username]databaseQ[database]@ |
I too get this error. It seems that something changed between 0.5.10+ and 0.5.8 to cause this behavior. I am not using any orm and just using the library directly. The final buffer seems to be corrupted and thus the correct bytes are not sent over the wire (confirmed with tcp dump). 0.5.8 wire transmission: 0.5.10+ transmission: You can see that on row 2, byte 1 there is 0x7f when it should be 0x00. |
null terminated buffers being written differently: nodejs/node-v0.x-archive@6a72e52 I'll have this fixed within 24 hours. If you wanna try submitting a patch the culprit is within the /lib/writer.js class. Should be a 1 line fix. |
Thanks! This patch works for me. |
I'm still getting this exact issue on Ubuntu 10.10 w/ Postgres 9.1, running node 0.6.6 |
Bumps [eslint](https://github.com/eslint/eslint) from 4.4.0 to 4.18.2. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](eslint/eslint@v4.4.0...v4.18.2) Signed-off-by: dependabot[bot] <[email protected]>
I just upgraded to node 0.5.10 and started getting "invalid startup packet layout: expected terminator as last byte" when connecting (connection then fails). I'm not entirely sure if this is a node-postgres issue, but it seems to be the most likely source of the problem. Things were working fine until the upgrade.
Additional detail: I'm use node-orm on top of node-postgres, though I don't believe there's any issue there.
The text was updated successfully, but these errors were encountered: