home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.56k stars 30.74k forks source link

Error from stream worker: Error opening stream (HTTP_UNAUTHORIZED, Server returned 401 Unauthorized (authorization failed)) rtsp://****:****@<ip_address_synology>:554/Sms=15.unicast #82140

Closed GitHubxtsnl closed 1 year ago

GitHubxtsnl commented 1 year ago

The problem

I'm calling the camera:record services to record video from my camera serviced through my Synology Surveillance Station, which is integrated into HA via the Synology DSM integration.

The following error appears in the log.

Logger: homeassistant.components.stream.stream.camera.*******_dsm_cam8
Source: components/stream/__init__.py:428
Integration: Stream ([documentation](https://www.home-assistant.io/integrations/stream), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+stream%22))
First occurred: 5:00:49 PM (1 occurrences)
Last logged: 5:00:49 PM
Error from stream worker: Error opening stream (HTTP_UNAUTHORIZED, Server returned 401 Unauthorized (authorization failed)) rtsp://****:****@********:554/Sms=15.unicast

image

The camera image is being used in a picture glance card without any issues, also

What version of Home Assistant Core has the issue?

2022.11.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Synology DSM

Link to integration documentation on our website

https://www.home-assistant.io/integrations/synology_dsm

Diagnostics information

config_entry-synology_dsm-da02fe74690725dbf3ac2e5d2b5920bb.json (1).txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

using the stream-path (rtsp://syno:69bee7ce1e819302cbf4c01712545d7a@***:554/Sms=15.unicast) in VLC works without any issues. Also the Synology Surveillance Station does not report any issues with the camera.

when using the camera:take snapshot services it works like a charm, and I can take a snapshot and view it.

home-assistant[bot] commented 1 year ago

Hey there @hacf-fr, @quentame, @mib1185, mind taking a look at this issue as it has been labeled with an integration (synology_dsm) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `synology_dsm` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Change the title of the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign synology_dsm` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


synology_dsm documentation synology_dsm source (message by IssueLinks)

home-assistant[bot] commented 1 year ago

Hey there @hunterjm, @uvjustin, @allenporter, mind taking a look at this issue as it has been labeled with an integration (stream) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `stream` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Change the title of the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign stream` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


stream documentation stream source (message by IssueLinks)