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

UPnP Error 714 received: Illegal MIME-Type #377

Open
druvolo1 opened this issue Dec 4, 2024 · 0 comments
Open

UPnP Error 714 received: Illegal MIME-Type #377

druvolo1 opened this issue Dec 4, 2024 · 0 comments

Comments

@druvolo1
Copy link

druvolo1 commented Dec 4, 2024

Hello,
I am really struggling to get the ytube player working with Sonos. I enabled the debugging and put what I saw relevant from the logs below. I am not sure if my issue is one that would benefit from the suggested proxy. I have been trying to get the proxy working but that isn't going well either. Was hoping there was something else I can do to resolve this.

Thank you in advance.

2024-12-04 09:31:09.458 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall media_player.play_media (c:01JE9BKJ7T4EX5KT17HREHBDSF): entity_id=['media_player.kitchen'], extra=metadata=metadataType=3, title=Cryin In The Rain (Live Acoustic), artist=Alex Lambert, images=[{'url': 'https://lh3.googleusercontent.com/YEMu_P7ge3FSTAXaKkWyoOKYVTRHij9nR9V-e2b_sWwagsxoYxP8b5Irg4pWg9WcijSCLCjW31RKa5oM=w544-h544-l90-rj'}], media_type=music, media_id=https://rr7---sn-8xgp1vo-ab5d.googlevideo.com/videoplayback?expire=1733355069&ei=3ZFQZ4C6FNq2kucPzMHJuQ4&ip=72.76.84.69&id=o-AEkLMf_AUDghZ_0-Og6IS3IdAQ7N1G93KAuLgDUe9fvO&itag=251&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&met=1733333469%2C&mh=fI&mm=31%2C26&mn=sn-8xgp1vo-ab5d%2Csn-p5qddn7d&ms=au%2Conr&mv=m&mvi=7&pl=22&rms=au%2Cau&gcr=us&initcwndbps=1137500&bui=AQn3pFSZ6M30cAY7763Gwnx1AeGKP2WCr_xA81Fy831Ck2xfFofeLZ98a2SihOh5owjx-6SKgBetj6SO&vprv=1&mime=audio%2Fwebm&rqh=1&gir=yes&clen=3708222&dur=214.821&lmt=1714637294645333&mt=1733332877&fvip=3&keepalive=yes&fexp=51326932%2C51335594%2C51347746&c=ANDROID_VR&txp=2318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cgcr%2Cbui%2Cvprv%2Cmime%2Crqh%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRQIgPzB1cqGEjLWtWwhcNLzqGe68rbLwGPEGVy8VQo6CF6wCIQCagzLn1lr2NwXN7KPdBMsR2EgmvR0IpsU_VFKJiFNWOA%3D%3D&lsparams=met%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms%2Cinitcwndbps&lsig=AGluJ3MwRQIgbflASTYac7aiZhgPG8uUzbit6FLPP99RsNmYvNeqaFQCIQCFtNMM47rDA0GK2pnRqar7q69qT7aPbMREDr1Oo9dhlA%3D%3D>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sonos/helpers.py", line 60, in wrapper
result = funct(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 667, in _play_media
soco.play_uri(media_id, force_radio=is_radio)
File "/usr/local/lib/python3.12/site-packages/soco/core.py", line 146, in inner_function
return function(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/soco/core.py", line 839, in play_uri
self.avTransport.SetAVTransportURI(
File "/usr/local/lib/python3.12/site-packages/soco/services.py", line 207, in _dispatcher
return self.send_command(action, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/soco/services.py", line 515, in send_command
self.handle_upnp_error(response.text)
File "/usr/local/lib/python3.12/site-packages/soco/services.py", line 571, in handle_upnp_error
raise SoCoUPnPException(
soco.exceptions.SoCoUPnPException: UPnP Error 714 received: Illegal MIME-Type from 172.16.1.204

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 2822, in _run_service_call_catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1007, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1079, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sonos/media_player.py", line 583, in async_play_media
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sonos/helpers.py", line 74, in wrapper
raise SonosUpdateError(message) from err
homeassistant.components.sonos.exception.SonosUpdateError: Error calling SonosMediaPlayerEntity._play_media on media_player.kitchen: UPnP Error 714 received: Illegal MIME-Type from 172.16.1.204
2024-12-04 09:31:10.228 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_track
2024-12-04 09:31:10.228 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] play_media
2024-12-04 09:31:25.209 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.kitchen: idle -> idle [E]
2024-12-04 09:31:25.229 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2024-12-04 09:31:25.229 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] event: 2024-12-04 17:31:25.229380+00:00
2024-12-04 09:31:25.229 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] ... media_player.kitchen
2024-12-04 09:31:25.229 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_sync_player

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

No branches or pull requests

1 participant