TypeError: Object [object Object] has no method 'split' #1

Closed
raghavchalapathy opened this Issue Jan 22, 2014 · 1 comment

Comments

Projects
None yet
2 participants

Hi,

Could you please let me know if I am missing any modules related to nomedia-webrtc

I hit upon this error while trying to make an invite call and initialize the media;

Inside Sdp.js several places split is called but dont know from where is it referenced;

TypeError: Object [object Object] has no method 'split'
at Object.exports.parse (/usr/lib/node_modules/nomedia-webrtc/node_modules/rtc-peer-connection/node_modules/sdp/sdp.js:589:21)


ERROR OBTAINED DETAILED


constraints [object Object]
JsSIP | EVENT EMITTER | emitting event newRTCSession
JsSIP | RTC MEDIAHANDER | requesting access to local media
JsSIP | RTC MEDIAHANDER | got local media stream

  1. // var parsed = attr.value.split(' '), sdp.js line : 71 this also throws errors that split is not found

/usr/lib/node_modules/nomedia-webrtc/node_modules/rtc-peer-connection/node_modules/sdp/sdp.js:589
var lines = sdp.split(/\r?\n/);
^
TypeError: Object [object Object] has no method 'split'
at Object.exports.parse (/usr/lib/node_modules/nomedia-webrtc/node_modules/rtc-peer-connection/node_modules/sdp/sdp.js:589:21)
at Object.module.exports.RTCPeerConnection.setLocalDescription (/usr/lib/node_modules/nomedia-webrtc/node_modules/rtc-peer-connection/index.js:97:25)
at Object.RTCMediaHandler.setLocalDescription (/usr/lib/node_modules/jssip-for-node/src/RTCSession/RTCMediaHandler.js:97:25)
at /usr/lib/node_modules/jssip-for-node/src/RTCSession/RTCMediaHandler.js:56:14
at Object.module.exports.RTCPeerConnection.createOffer (/usr/lib/node_modules/nomedia-webrtc/node_modules/rtc-peer-connection/index.js:77:7)
at Object.RTCMediaHandler.createOffer (/usr/lib/node_modules/jssip-for-node/src/RTCSession/RTCMediaHandler.js:54:25)
at streamAdditionSucceeded (/usr/lib/node_modules/jssip-for-node/src/RTCSession.js:778:25)
at Object.RTCMediaHandler.addStream (/usr/lib/node_modules/jssip-for-node/src/RTCSession/RTCMediaHandler.js:118:5)
at userMediaSucceeded (/usr/lib/node_modules/jssip-for-node/src/RTCSession.js:760:25)
at /usr/lib/node_modules/jssip-for-node/src/RTCSession/RTCMediaHandler.js:202:9

with regards
Raghav

Owner

shimaore commented Feb 21, 2014

Hey, finally got some time to work on this. Please check the latest release on npm.

shimaore closed this Feb 21, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment