bropat / eufy-security-ws

Small server wrapper around eufy-security-client library to access it via a WebSocket.
MIT License
176 stars 26 forks source link

Stop RTSP Live Stream Function error #40

Closed fuatakgun closed 2 years ago

fuatakgun commented 2 years ago

Describe the bug
When calling stop_rtsp_livestream, docker throws error as

 ERROR Station stop rtsp livestream error (station: T8010N2320460480 channel: -1)
 DeviceNotFoundError  No device with channel -1 found on station with serial number: T8010N2320460480!
details:
{
  name: 'DeviceNotFoundError'
}
error stack:
• eufysecurity.ts:280 getStationDevice
    node_modules/eufy-security-client/src/eufysecurity.ts:280:15
• eufysecurity.ts:1081 onStopStationRTSPLivestream
    node_modules/eufy-security-client/src/eufysecurity.ts:1081:33
• eufysecurity.ts:341 <anonymous>
    node_modules/eufy-security-client/src/eufysecurity.ts:341:95
• events.js:400 emit
    events.js:400:28
• station.ts:475 onStopRTSPLivestream
    node_modules/eufy-security-client/src/http/station.ts:475:14
• station.ts:62 <anonymous>
    node_modules/eufy-security-client/src/http/station.ts:62:81
• events.js:400 emit
    events.js:400:28
• session.ts:1444 endRTSPStream
    node_modules/eufy-security-client/src/p2p/session.ts:1444:18
• session.ts:561 _sendCommand
    node_modules/eufy-security-client/src/p2p/session.ts:561:26
• session.ts:436 sendQueuedMessage
    node_modules/eufy-security-client/src/p2p/session.ts:436:22

Steps

Expected behavior
Do not throw and error and fire rtsp livestream stopped event to client

Versions:

Additional context
Related issue: https://github.com/fuatakgun/eufy_security/issues/59

bropat commented 2 years ago

@fuatakgun

This is a bug in the eufy-security-client library. It will be fixed in version 1.2.2. In eufy-security-ws it will be fixed with version 0.5.2.

fuatakgun commented 2 years ago

when do you plan to publish new version? I will plan accordingly to publish new version of integration either relying on enabling/disabling RTSP (as it is for today) or starting/stopping RTSP livestream.

bropat commented 2 years ago

It depends on the issue #15. Whether it is effectively still a bug or not.

bropat commented 2 years ago

@fuatakgun

Have now published the new version.

fuatakgun commented 2 years ago

thanks, checking now