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

RTSP server crashing causes node to crash as well #83

Open
Leone25 opened this issue Sep 19, 2023 · 0 comments · Fixed by GyeongHoKim/yellowstone#1 · May be fixed by #85
Open

RTSP server crashing causes node to crash as well #83

Leone25 opened this issue Sep 19, 2023 · 0 comments · Fixed by GyeongHoKim/yellowstone#1 · May be fixed by #85

Comments

@Leone25
Copy link

Leone25 commented Sep 19, 2023

Hello,

I'm having issues with using yellowstone with my DVR. For some weird reason the RTSP server on my DVR tends to crash randomly which causes any active connection to drop dead (this can be easily simulated by just disconnecting your internet while the script is running and then waiting a couple of seconds). This causes this error when using it with yellowstone:

node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
Emitted 'error' event on Socket instance at:
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { 
  errno: -4077,
  code: 'ECONNRESET',
  syscall: 'read'
}

Node.js v18.14.0

I have tried adding a catch after the connect call and also an event listener to the RTSPClient instance, but neither stopped the error from crashing the whole application. Any suggestion on how to prevent this?

Thanks

Enrico

This was referenced Jun 10, 2024
GyeongHoKim added a commit to GyeongHoKim/yellowstone that referenced this issue Jun 10, 2024
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

Successfully merging a pull request may close this issue.

1 participant