wvanbergen / node-vertica

Pure javascript Vertica database client. Except it is written in CoffeeScript.
MIT License
44 stars 30 forks source link

Connection error on node.js version >= 0.11.3 #36

Closed dalex3 closed 9 years ago

dalex3 commented 10 years ago

I get error when connecting to server with node.js v0.11.3 and up

vertica.connect({host:'127.0.0.1', user:'...', password:'...'}, function(err){
    console.log(err);
});

{ [Error: Invalid startup packet layout: expected terminator as last byte]
  message: 'Invalid startup packet layout: expected terminator as last byte',
  fields: 
   { Severity: 'FATAL',
     Code: '08V01',
     Message: 'Invalid startup packet layout: expected terminator as last byte',
     File: '/scratch_a/release/vbuild/vertica/Session/ClientSession.cpp',
     Line: '3800',
     Routine: 'ProcessStartupPacket' },
  code: '08V01' }
sudhakar commented 10 years ago

I can confirm this error in v0.11.13 as well. Could it be because of the new streams implementation in node 0.11.x?

wvanbergen commented 9 years ago

@sudhakar Thanks for fixing this issue.

sudhakar commented 9 years ago

@wvanbergen Big thanks to you for this library. I have been using this in production for more than a year & super happy with its stability :sparkles:

wvanbergen commented 9 years ago

I am no longer using this library myself. I have added you as a collaborator so you can fix issues if you run into any. Feel free to ping me for code reviews if you want to.

sudhakar commented 9 years ago

Awesome @wvanbergen. I missed to update the package.json on the last PR. Have updated & pushed in the last commit. Can you publish 0.5.3 to npm..

wvanbergen commented 9 years ago

Release is pushed. Can you check if it's working as expected?