Ring: Getting a bunch of errors since the Ring TypeScript API update

Created on 11 Jan 2020  路  19Comments  路  Source: dgreif/ring

Failed to prepare stream for Front Door (0.23s)
[1/11/2020, 12:55:08 AM] [Ring] TypeError: Cannot read property 'split' of undefined
at new SipSession (/usr/lib/node_modules/homebridge-ring/lib/api/sip-session.js:103:23)
at RingCamera. (/usr/lib/node_modules/homebridge-ring/lib/api/ring-camera.js:277:20)
at Generator.next ()
at fulfilled (/usr/lib/node_modules/homebridge-ring/lib/api/ring-camera.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:97:5)

Ring bug

All 19 comments

same here

Wow. Just wow. Sorry guys, Ring is so inconsistent between their wired cameras and battery cameras. I changed around the way we fetch the connection info for live streaming and apparently this approach only works for wired cameras (which is all that I tested it with 馃う鈥嶁檪). I should have a fix out this weekend if I get time, but you are welcome to revert to the previous version if you need live streams right away. Sorry for the bug!

allready done. Please tell us when there is a fix. I appreciate your work. Thanks a lot and greetings from germany

same issue here - what is the fix?

@jeroenterheerdt as I stated above, you can just use the old version for now. I have the fix done, but was trying to get some additional improvements in for live streaming before my next release

@dgreif thanks - got it.

@dgreif Thanks for the quick responses!

Thanks for your patience everyone! These errors should be gone in v5.13.1

I seem to be getting another issue now.

[1/16/2020, 1:38:33 AM] [Ring] Failed to prepare stream for Front Door (0.159s)
[1/16/2020, 1:38:33 AM] [Ring] TypeError: Cannot read property 'split' of undefined
at new SipSession (/usr/lib/node_modules/homebridge-ring/lib/api/sip-session.js:103:23)
at RingCamera. (/usr/lib/node_modules/homebridge-ring/lib/api/ring-camera.js:277:20)
at Generator.next ()
at fulfilled (/usr/lib/node_modules/homebridge-ring/lib/api/ring-camera.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:97:5)

pi@raspberrypi:~ $ npm show homebridge-ring version
5.13.1

I'm up to date as well

Same here, I'm also getting the 'TypeError: Cannot read property 'split' of undefined
at new SipSession...' error. Snapshots still work fine, but live stream fails.

v6.1.0

@scotch115 that issue should be fixed in 6.1.0. Have you tried restarting your homebridge server since you updated?

Yeah, I've tried reverting to an older version, I've tried uninstalling and reinstalling the package, and rebooting my Pi--still getting 'Failed to prepare stream for Front Door.'

Is it giving the Cannot read property 'split' of undefined at new SipSession. error every time, or just failing to start live stream? And did live streams work previously, or have you always had issue until updating?

Live streams have never worked on my Raspberry Pi, but work fine when I run Homebridge on my Mac. I even flashed my Pi with a fresh install of Raspbian--no luck. The error I'm getting is:

[1/23/2020, 9:31:14 AM] [Ring] Failed to prepare stream for Front Door (0.305s)
[1/23/2020, 9:31:14 AM] [Ring] TypeError: Cannot read property 'split' of undefined
    at new SipSession (/usr/local/lib/node_modules/homebridge-ring/lib/api/sip-session.js:103:23)
    at RingCamera.<anonymous> (/usr/local/lib/node_modules/homebridge-ring/lib/api/ring-camera.js:277:20)
    at Generator.next (<anonymous>)
    at fulfilled (/usr/local/lib/node_modules/homebridge-ring/lib/api/ring-camera.js:5:58)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

I'm sorry, but that's not the latest version of the code. I'm not sure why it's not updating for you, but that split call is now in sip-call.js instead of sip-session.js (which is what your error show). You may have the plugin installed multiple different ways on that computer (globally and in some specific folder), but you will have to track that down on your own. Once you get it properly updated to the latest version, that error will go away.

Okay, I'll uninstall globally and try it again. Thanks for the quick responses!

Uninstalling globally fixed it--thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

parchmaf picture parchmaf  路  3Comments

onefish2 picture onefish2  路  5Comments

mrtekkid picture mrtekkid  路  3Comments

donavanbecker picture donavanbecker  路  5Comments

dgreif picture dgreif  路  6Comments