Skip to content
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

App Crashed with the following error.. #7

Open
jbmyid opened this issue Jan 7, 2021 · 3 comments
Open

App Crashed with the following error.. #7

jbmyid opened this issue Jan 7, 2021 · 3 comments

Comments

@jbmyid
Copy link

jbmyid commented Jan 7, 2021

App Crashed with the following error.

/home/asdf/node_modules/drachtio-sip/lib/message.js:14
Object.assign(this.headers, msg.headers || {});

TypeError: Cannot read property 'headers' of undefined
at new SipMessage (/home/asdf/node_modules/drachtio-sip/lib/message.js:14:39)
at DrachtioAgent._onMsg (/home/asdf/node_modules/drachtio-srf/lib/drachtio-agent.js:548:24)
at WireProtocol.emit (events.js:310:20)
at WireProtocol.EventEmitter.emit (domain.js:482:12)
at WireProtocol.processMessageBuffer (/home/asdf/node_modules/drachtio-srf/lib/wire-protocol.js:270:12)
at WireProtocol._onData (/home/asdf/node_modules/drachtio-srf/lib/wire-protocol.js:304:14)
at Socket.emit (events.js:310:20)
at Socket.EventEmitter.emit (domain.js:482:12)
at addChunk (_stream_readable.js:286:12)
at readableAddChunk (_stream_readable.js:264:11)

The app was running fine, and the next day it was crashed with the above error. There was no more trace other than this.

@davehorton
Copy link
Collaborator

what version of drachtio-srf are you using?

@davehorton
Copy link
Collaborator

can you update to drachtio 4.4.45 and try again?

t seems like the issue is that the SIP message coming in is unparseable -- that was causing the crash. I have modified the code in 4.4.45 to log the unparseable message and continue. It should not crash, but I need you to see if you can find a log message including 'unable to parse incoming message'.

Please test with this version and let me know if you see the message above, and provide details on it

@jbmyid
Copy link
Author

jbmyid commented Jan 8, 2021

The version we are using is 4.4.44.

Will try 4.4.45.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants