core
core copied to clipboard
Media source integration does not support HEAD verb
The problem
I was trying to track down the issue that my Samsung Smart TV would not play media via DLNA and found that the TV is attempting to HEAD the media to be played before GET-ting it.
I was able to successfully execute a media_player.play_media action with the URL pointing to the www directory that does respond to the HEAD request.
What version of Home Assistant Core has the issue?
core-2025.1.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
media_source
Link to integration documentation on our website
https://www.home-assistant.io/integrations/media_source/
Diagnostics information
No response
Example YAML snippet
action: media_player.play_media
target:
device_id: 650f471702e7cbfdd16e84f978f80d31
data:
media_content_id: >-
http://192.168.1.2:8123/media/local/nkch.png?authSig=xxxx
media_content_type: image/png
Anything in the logs that might be useful for us?
2025-01-07 19:18:19.801 DEBUG (MainThread) [async_upnp_client.traffic.upnp] Got response from HEAD http://192.168.1.2:8123/media/local/nkch.m4a?authSig=xxxxx:
405
Content-Type: text/plain; charset=utf-8
Allow: GET,OPTIONS
Referrer-Policy: no-referrer
X-Content-Type-Options: nosniff
Server:
X-Frame-Options: SAMEORIGIN
Content-Length: 23
Date: Tue, 07 Jan 2025 15:18:19 GMT
b''
Additional information
No response
Hey there @hunterjm, mind taking a look at this issue as it has been labeled with an integration (media_source) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of media_source can trigger bot actions by commenting:
@home-assistant closeCloses the issue.@home-assistant rename Awesome new titleRenames the issue.@home-assistant reopenReopen the issue.@home-assistant unassign media_sourceRemoves the current integration label and assignees on the issue, add the integration domain after the command.@home-assistant add-label needs-more-informationAdd a label (needs-more-information, problem in dependency, problem in custom component) to the issue.@home-assistant remove-label needs-more-informationRemove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
media_source documentation media_source source (message by IssueLinks)
Hey, just bumping this so that it won't get stale
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.