|
发表于 2020-1-14 10:27:31
|
显示全部楼层
本帖最后由 vecany 于 2020-1-14 12:52 编辑
用windows搭建的报错
2020-01-14 10:26:03 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "f:\python3\lib\site-packages\aiohttp\web_protocol.py", line 418, in start
resp = await task
File "f:\python3\lib\site-packages\aiohttp\web_app.py", line 458, in _handle
resp = await handler(request)
File "f:\python3\lib\site-packages\aiohttp\web_middlewares.py", line 119, in impl
return await handler(request)
File "f:\python3\lib\site-packages\homeassistant\components\http\real_ip.py", line 40, in real_ip_middleware
return await handler(request)
File "f:\python3\lib\site-packages\homeassistant\components\http\ban.py", line 73, in ban_middleware
return await handler(request)
File "f:\python3\lib\site-packages\homeassistant\components\http\auth.py", line 136, in auth_middleware
return await handler(request)
File "f:\python3\lib\site-packages\homeassistant\components\http\view.py", line 123, in handle
result = await result
File "C:\Users\Guangzeng Yu\AppData\Roaming\.homeassistant\custom_components\ha_cloud_music\media_player.py", line 136, in post
async with aiohttp.request('GET',API_URL + _api) as r: File "f:\python3\lib\site-packages\aiohttp\client.py", line 1051, in __aenter__
self._resp = await self._coro
File "f:\python3\lib\site-packages\aiohttp\client.py", line 464, in _request
req = self._request_class(
File "f:\python3\lib\site-packages\aiohttp\client_reqrep.py", line 285, in __init__
self.update_host(url)
File "f:\python3\lib\site-packages\aiohttp\client_reqrep.py", line 339, in update_host
raise InvalidURL(url)
aiohttp.client_exceptions.InvalidURL: 127.0.0.1:3000/user/playlist?uid=11111
解决了 URL改为 http://localhost:3000就好了
|
|