R
RunPod2mo ago
pg2571

Not able to connect to the local test API server

I am running the container on an EC2 instance. I keep getting errors like:
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/dist-packages/aiohttp/web_app.py", line 473, in _handle
match_info = await self._router.resolve(request)
File "/usr/local/lib/python3.10/dist-packages/aiohttp/web_urldispatcher.py", line 1010, in resolve
match_dict, allowed = await resource.resolve(request)
File "/usr/local/lib/python3.10/dist-packages/aiohttp/web_urldispatcher.py", line 755, in resolve
not request.url.raw_path.startswith(self._prefix2)
File "aiohttp/_helpers.pyx", line 26, in aiohttp._helpers.reify.__get__
File "/usr/local/lib/python3.10/dist-packages/aiohttp/web_request.py", line 437, in url
url = URL.build(scheme=self.scheme, host=self.host)
File "/usr/local/lib/python3.10/dist-packages/yarl/_url.py", line 388, in build
_host = _encode_host(host, validate_host=True)
File "/usr/local/lib/python3.10/dist-packages/yarl/_url.py", line 1482, in _encode_host
raise ValueError(
ValueError: Host '172.18.0.1:8188' cannot contain ':' (at position 10)
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/dist-packages/aiohttp/web_app.py", line 473, in _handle
match_info = await self._router.resolve(request)
File "/usr/local/lib/python3.10/dist-packages/aiohttp/web_urldispatcher.py", line 1010, in resolve
match_dict, allowed = await resource.resolve(request)
File "/usr/local/lib/python3.10/dist-packages/aiohttp/web_urldispatcher.py", line 755, in resolve
not request.url.raw_path.startswith(self._prefix2)
File "aiohttp/_helpers.pyx", line 26, in aiohttp._helpers.reify.__get__
File "/usr/local/lib/python3.10/dist-packages/aiohttp/web_request.py", line 437, in url
url = URL.build(scheme=self.scheme, host=self.host)
File "/usr/local/lib/python3.10/dist-packages/yarl/_url.py", line 388, in build
_host = _encode_host(host, validate_host=True)
File "/usr/local/lib/python3.10/dist-packages/yarl/_url.py", line 1482, in _encode_host
raise ValueError(
ValueError: Host '172.18.0.1:8188' cannot contain ':' (at position 10)
I've hit it as localhost, 0.0.0.0, 127.0.0.1. I've tried from inside the container too. It still throws this error....
2 Replies
nerdylive
nerdylive2mo ago
how do you run it what code is itfrom?
pg2571
pg2571OP2mo ago
Sorry! this is solved. Just had to update the runpod lib.
Want results from more Discord servers?
Add your server