stomp-js icon indicating copy to clipboard operation
stomp-js copied to clipboard

can`t read the property trim of 'undefind

Open srinivas1918 opened this issue 9 years ago • 2 comments

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)

srinivas1918 avatar Sep 08 '15 08:09 srinivas1918

+1

QAnders avatar Jan 31 '18 14:01 QAnders

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"...

QAnders avatar Jan 31 '18 15:01 QAnders