brianc/node-postgres — Issue #62: ProcessStartupPacket issues
Author: zachaller
Created: 2011-10-30 18:51:24+00:00
State: open

Error with postgres works fine on node v0.5.9 but breaks on 0.5.10 and up I am currently running off node master since v0.6 is so close to coming out. Also running postgres 9.1

{ [error: invalid startup packet layout: expected terminator as last byte]
length: 126,
name: 'error',
severity: 'FATAL',
code: '08P01',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
file: 'postmaster.c',
line: '1761',
routine: 'ProcessStartupPacket' }
error: invalid startup packet layout: expected terminator as last byte
at [object Object]. (/home/zachaller/zonemap2/node_modules/pg/lib/connection.js:387:11)
at [object Object].parseMessage (/home/zachaller/zonemap2/node_modules/pg/lib/connection.js:262:17)
at Socket. (/home/zachaller/zonemap2/node_modules/pg/lib/connection.js:45:22)
at Socket.emit (events.js:67:17)
at TCP.onread (net.js:306:14)