TTS error on version 0.9.8 (2.2.0)
See original GitHub issueDescribe the bug
Getting an error from HA API when testing out TTS from the homepod mini.
Testing out TTS on google mini and worked fine.
Error log
2021-12-17 15:33:49 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139695694657808] HTTP Error 403: Forbidden
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1495, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1530, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/components/tts/__init__.py", line 200, in async_say_handle
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1495, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1530, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 209, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 663, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 896, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 700, in _handle_entity_call
await result
File "/config/custom_components/apple_tv/media_player.py", line 286, in async_play_media
await self.atv.stream.stream_file(media_id)
File "/usr/local/lib/python3.9/site-packages/pyatv/core/facade.py", line 382, in stream_file
await self.relay("stream_file")(file, **kwargs)
File "/usr/local/lib/python3.9/site-packages/pyatv/protocols/raop/__init__.py", line 350, in stream_file
audio_file = await open_source(
File "/usr/local/lib/python3.9/site-packages/pyatv/protocols/raop/audio_source.py", line 457, in open_source
return await InternetSource.open(source, sample_rate, channels, sample_size)
File "/usr/local/lib/python3.9/site-packages/pyatv/protocols/raop/audio_source.py", line 339, in open
source = await loop.run_in_executor(None, PatchedIceCastClient, url)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/miniaudio.py", line 1091, in __init__
with urllib.request.urlopen(req) as result:
File "/usr/local/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python3.9/urllib/request.py", line 523, in open
response = meth(req, response)
File "/usr/local/lib/python3.9/urllib/request.py", line 632, in http_response
response = self.parent.error(
File "/usr/local/lib/python3.9/urllib/request.py", line 561, in error
return self._call_chain(*args)
File "/usr/local/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.9/urllib/request.py", line 641, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
How to reproduce the bug?
Type in a TTS message for homepod mini entity and get error right away.
What is expected behavior?
Message to come through
Operating System
Docker
Python
3.9.7
pyatv
0.9.8
Device
Apple HomePod Mini
Additional context
System Health
version: core-2021.12.3
installation_type: Home Assistant Container
dev: false
hassio: false
docker: true
user: root
virtualenv: false
python_version: 3.9.7
os_name: Linux
os_version: 4.4.0-210-generic
arch: x86_64
timezone: America/Phoenix
Let me know if anything else is needed.
Issue Analytics
- State:
- Created 2 years ago
- Comments:25 (12 by maintainers)
Top Results From Across the Web
Bug listing with status RESOLVED with resolution TEST ...
Error in sched.c line 961." status:RESOLVED resolution:TEST-REQUEST severity:major · Bug:22815 - "Gentoo fails to reboot after changes are made to the ...
Read more >HTTP Error 403: Forbidden for resources · Issue #81 - GitHub
We are getting 403 forbidden from CloudFlare if you try and open url with urllib. from urllib.request import urlopen urlopen('https://pkgstore.datahub.io/core/ ...
Read more >https://cran.r-project.org/bin/windows/contrib/4.0...
... WARNING OK 2.2.0 2.3.0 mscstts * * ERROR OK 0.5.4 0.5.5 nlme * * OK ERROR 3.1-147 3.1-148 ordinalNet * * ERROR...
Read more >System Requirements - tts performance suite 2021 - WebAccess
Component. Requirement. Operating system. Windows 8.1. -. (only Windows Desktop, no Metro Interface, no apps). - latest updated needs be installed.
Read more >checkdiff-2020-10-05-2020-10-04.txt
packages S V S_Old S_New V_Old ASMap * OK ERROR 1.0-4 BACA * OK ERROR 1.3 BASS ... OK ERROR 2.2.0 Publish *...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
take your time, no hurry, Also if you need any other logs or help of any kind - just let me know.
#1553, which I just merged, fixes the initial
Forbidden
problem though.