Open cryptobench opened 1 year ago
Could be related to https://github.com/golemfactory/golem-internal/issues/535 ?
Unable to recreate the crash now, but instead i'm receiving the following 90% of the time. Sometimes you are lucky to receive a "fast" provider that returns 200 and everything works.
[2022-10-25T22:11:58.647+0000 ERROR yapapi.contrib.service.http_proxy] Error receiving remote response. url=/service/create?deployment_id=15&build_path=dist, service=, exception=(expected string or bytes-like object) [Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/yapapi/contrib/service/http_proxy.py", line 159, in handle_request
response = await response_parser.get_response()
File "/usr/local/lib/python3.8/site-packages/yapapi/contrib/service/http_proxy.py", line 81, in get_response
self.receive_data(ws_response.data)
File "/usr/local/lib/python3.8/site-packages/yapapi/contrib/service/http_proxy.py", line 59, in receive_data
parts = re.split(b"\r\n\r\n", data)
File "/usr/local/lib/python3.8/re.py", line 231, in split
return _compile(pattern, flags).split(string, maxsplit)
TypeError: expected string or bytes-like object
])
Error occurs here in yapapi https://github.com/golemfactory/yapapi/blob/888b25bcfe2d4ef6558b7e1a3b02c8a39d0beef1/yapapi/contrib/service/http_proxy.py#L165
@cryptobench which yagna version are you using?
The one released during the community testing of the new network driver.
@golemfactory/core I believe it has to do with the timeout on the websocket itself - could you confirm or deny that?
Description
OS: Mac OSX
yagna daemon version: Yapapi master - 25th october 2022
Python version: 3.10.7
yapapi library version: 0.10.0.dev0
yapapi branch: Master
Description of the issue: When hosting a webserver on the provider via localhttpproxy and you try to upload a larger payload, then the VPN crashes or you receive
aiohttp.client_exceptions.ClientOSError: [Errno 54] Connection reset by peer
Screenshots:
Steps To Reproduce
Launch a webserver with http-proxy and send a request to the webserver where the payload includes a file of size 10 MB ish
Expected behavior
Requests returns as expected
Logs and any additional context
Yagna
Yapapi