|
发表于 2018-7-30 14:58:15
|
显示全部楼层
本帖最后由 野战排长 于 2018-7-30 15:00 编辑
请教一下各位大大,遇到过这种错误码?
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/core.py", line 1007, in _event_to_service_call
await service_handler.func(service_call)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/tts/__init__.py", line 134, in async_say_handle
options=options
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/tts/__init__.py", line 300, in async_get_url
engine, key, message, use_cache, language, options)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/tts/__init__.py", line 313, in async_get_tts_audio
message, language, options)
File "/usr/local/lib/python3.6/asyncio/futures.py", line 332, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
future.result()
File "/usr/local/lib/python3.6/asyncio/futures.py", line 245, in result
raise self._exception
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.6/site-packages/homeassistant/components/tts/baidu.py", line 136, in get_tts_audio
message, language, 1, speech_data
File "/usr/local/lib/python3.6/site-packages/aip/speech.py", line 92, in synthesis
result = self._request(self.__ttsUrl, data)
File "/usr/local/lib/python3.6/site-packages/aip/base.py", line 91, in _request
authObj = self._auth()
File "/usr/local/lib/python3.6/site-packages/aip/base.py", line 167, in _auth
), proxies=self._proxies).json()
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 521, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 502, in send
raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPSConnectionPool(host='aip.baidubce.com', port=443): Max retries exceeded with url: /oauth/2.0/token?grant_type=client_credentials&client_id=HhuDCIKXfzPE1SXO8&client_secret=26VzFHAfXNL1A7HLFG9v0Ym6OoBQ2 (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fc9019042b0>: Failed to establish a new connection: [Errno 111] Connection refused',)))
2018-07-30 14:49:14 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall tts.baidu_say: message=我是中国人民解放军>
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 83, in create_connection
raise err
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused |
|