yapapi
yapapi copied to clipboard
connect raise WSServerHandshakeError
Name: ederenn
yagna version: 0.9.0
OS+lang+version (if applicable):
!!! attach blender-yapapi.log, zipped data-dir !!!
in browser I got internal server error 500
in http logs:
```
['crownstar: running', 'red-coat: running']
local HTTP request: {}
sending a remote request '/favicon.ico' to <HttpService on red-coat [ 0x40c6b08d3f4b3badec5f8a1844acfb4f7b101cd9 ]>
Error handling request
Traceback (most recent call last):
File "C:\Users\ederenn\AppData\Local\Programs\Python\Python38\lib\site-packages\aiohttp\web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "http_proxy.py", line 54, in request_handler
response, status = await instance.handle_request(request.path_qs)
File "http_proxy.py", line 130, in handle_request
async with ws_session.ws_connect(
File "C:\Users\ederenn\AppData\Local\Programs\Python\Python38\lib\site-packages\aiohttp\client.py", line 1117, in __aenter__
self._resp = await self._coro
File "C:\Users\ederenn\AppData\Local\Programs\Python\Python38\lib\site-packages\aiohttp\client.py", line 769, in _ws_connect
raise WSServerHandshakeError(
aiohttp.client_exceptions.WSServerHandshakeError: 504, message='Invalid response status', url=URL('ws://127.0.0.1:7465/net-api/v1/net/a3f9f90c193c40578feb479920bd9a19/tcp/192.168.0.3/80')
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x0000021E989B9100>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x0000021E989583A0>, 846712.031)]']
connector: <aiohttp.connector.TCPConnector object at 0x0000021E989B9BE0>
['crownstar: running', 'red-coat: running']
```
@shadeofblue I'm experiencing this quiet a lot on the latest 0.12.0-RC's . It appears to happen when either your connection is broken and also at other times i'm not completely sure. The yapapi agreement doesn't get broken up when this error happens, so essentially the script is just not working until you restart it.
[2022-11-17T23:15:10.117+0000 INFO yapapi.contrib.service.http_proxy] Received a local HTTP request: GET /favicon.ico
[2022-11-17T23:15:10.119+0000 INFO yapapi.contrib.service.http_proxy] Sending request: `GET /favicon.ico` to
[]
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.8/site-packages/yapapi/contrib/service/http_proxy.py", line 258, in _request_handler
return await instance.handle_request(request)
File "/usr/local/lib/python3.8/site-packages/yapapi/contrib/service/http_proxy.py", line 149, in handle_request
async with ws_session.ws_connect(
File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 1141, in __aenter__
self._resp = await self._coro
File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 795, in _ws_connect
raise WSServerHandshakeError(
aiohttp.client_exceptions.WSServerHandshakeError: 504, message='Invalid response status', url=URL('ws://127.0.0.1:7465/net-api/v1/net/2a56156759db41d8b78ef0d5de80f14b/tcp/192.168.0.2/80')
Unclosed client session
client_session:
Unclosed connector
connections: ['[(, 20512.726045715)]']
connector: