benjaminws / stomp-js

Implementation of the STOMP protocol in node.js
BSD 3-Clause "New" or "Revised" License
87 stars 47 forks source link

can`t read the property trim of 'undefind #42

Open srinivas1918 opened 9 years ago

srinivas1918 commented 9 years ago

D:\snalla\nodejsexp\mqExp\node_modules\stomp\lib\stomp.js:54 headers[header[0].trim()] = header[1].trim() ^ TypeError: Cannot read property 'trim' of undefined at parse_headers (D:\snalla\nodejsexp\mqExp\node_modules\stomp\lib\stomp.js: 54:46) at parse_frame (D:\snalla\nodejsexp\mqExp\node_modules\stomp\lib\stomp.js:76 :15) at Socket. (D:\snalla\nodejsexp\mqExp\node_modules\stomp\lib\stom p.js:160:28) at Socket.emit (events.js:107:17) at readableAddChunk (_stream_readable.js:163:16) at Socket.Readable.push (_stream_readable.js:126:10) at TCP.onread (net.js:538:20)

QAnders commented 6 years ago

+1

QAnders commented 6 years ago

Ok, I got rid of this... The server is requiring SSL (TLS) so when I added SSL it started working. The error is not very describing though... :)

I would, thus, interpret this error as "connections failed"...