ProxyPool icon indicating copy to clipboard operation
ProxyPool copied to clipboard

Task exception was never retrieved

Open Blackhatfrance opened this issue 3 years ago • 1 comments

2022-09-20T09:29:04.833573+00:00 app[release.1044]: Task exception was never retrieved 2022-09-20T09:29:04.833577+00:00 app[release.1044]: future: <Task finished name='Task-59970' coro=<Tester.test() done, defined at /app/proxypool/processors/tester.py:34> exception=ContentTypeError(RequestInfo(url=URL('https://httpbin.org/ip'), method='GET', headers=<CIMultiDictProxy('Host': 'httpbin.org', 'Accept': '/', 'Accept-Encoding': 'gzip, deflate', 'User-Agent': 'Python/3.10 aiohttp/3.8.1')>, real_url=URL('https://httpbin.org/ip')), (), message='Attempt to decode JSON with unexpected mimetype: text/html', headers=<CIMultiDictProxy('Date': 'Tue, 20 Sep 2022 09:28:55 GMT', 'User-Agent': 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT); ck-block', 'Content-Type': 'text/html', 'Expires': '0', 'Cache-Control': 'no-cache', 'Pragma': 'no-cache', 'Connection': 'close', 'Content-Length': '282', 'Connection': 'keep-alive')>)> 2022-09-20T09:29:04.833577+00:00 app[release.1044]: Traceback (most recent call last): 2022-09-20T09:29:04.833578+00:00 app[release.1044]: File "/app/proxypool/processors/tester.py", line 51, in test 2022-09-20T09:29:04.833578+00:00 app[release.1044]: resp_json = await response.json() 2022-09-20T09:29:04.833579+00:00 app[release.1044]: File "/app/.heroku/python/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1103, in json 2022-09-20T09:29:04.833579+00:00 app[release.1044]: raise ContentTypeError( 2022-09-20T09:29:04.833580+00:00 app[release.1044]: aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://httpbin.org/ip')

Blackhatfrance avatar Sep 20 '22 09:09 Blackhatfrance

2022-09-20T09:53:12.381469+00:00 app[release.3191]: Task exception was never retrieved 2022-09-20T09:53:12.381478+00:00 app[release.3191]: future: <Task finished name='Task-67208' coro=<Tester.test() done, defined at /app/proxypool/processors/tester.py:34> exception=ClientResponseError(RequestInfo(url=URL('https://httpbin.org/ip'), method='CONNECT', headers=<CIMultiDictProxy('Host': 'httpbin.org', 'Accept': '/', 'Accept-Encoding': 'gzip, deflate', 'User-Agent': 'Python/3.10 aiohttp/3.8.1')>, real_url=URL('http://39.175.75.53:30001')), (), status=400, message='Expected HTTP/')> 2022-09-20T09:53:12.381478+00:00 app[release.3191]: Traceback (most recent call last): 2022-09-20T09:53:12.381479+00:00 app[release.3191]: File "/app/.heroku/python/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 898, in start 2022-09-20T09:53:12.381479+00:00 app[release.3191]: message, payload = await protocol.read() # type: ignore[union-attr] 2022-09-20T09:53:12.381480+00:00 app[release.3191]: File "/app/.heroku/python/lib/python3.10/site-packages/aiohttp/streams.py", line 616, in read 2022-09-20T09:53:12.381480+00:00 app[release.3191]: await self._waiter 2022-09-20T09:53:12.381481+00:00 app[release.3191]: File "/app/.heroku/python/lib/python3.10/site-packages/aiohttp/client_proto.py", line 213, in data_received 2022-09-20T09:53:12.381481+00:00 app[release.3191]: messages, upgraded, tail = self._parser.feed_data(data) 2022-09-20T09:53:12.381482+00:00 app[release.3191]: File "aiohttp/_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data 2022-09-20T09:53:12.381482+00:00 app[release.3191]: aiohttp.http_exceptions.BadHttpMessage: 400, message='Expected HTTP/' 2022-09-20T09:53:12.381483+00:00 app[release.3191]: 2022-09-20T09:53:12.381483+00:00 app[release.3191]: The above exception was the direct cause of the following exception: 2022-09-20T09:53:12.381484+00:00 app[release.3191]: 2022-09-20T09:53:12.381484+00:00 app[release.3191]: Traceback (most recent call last): 2022-09-20T09:53:12.381484+00:00 app[release.3191]: File "/app/proxypool/processors/tester.py", line 50, in test 2022-09-20T09:53:12.381485+00:00 app[release.3191]: async with session.get(url, proxy=f'http://{proxy.string()}', timeout=TEST_TIMEOUT) as response: 2022-09-20T09:53:12.381485+00:00 app[release.3191]: File "/app/.heroku/python/lib/python3.10/site-packages/aiohttp/client.py", line 1138, in aenter 2022-09-20T09:53:12.381486+00:00 app[release.3191]: self._resp = await self._coro 2022-09-20T09:53:12.381486+00:00 app[release.3191]: File "/app/.heroku/python/lib/python3.10/site-packages/aiohttp/client.py", line 535, in _request 2022-09-20T09:53:12.381486+00:00 app[release.3191]: conn = await self._connector.connect( 2022-09-20T09:53:12.381486+00:00 app[release.3191]: File "/app/.heroku/python/lib/python3.10/site-packages/aiohttp/connector.py", line 542, in connect 2022-09-20T09:53:12.381487+00:00 app[release.3191]: proto = await self._create_connection(req, traces, timeout) 2022-09-20T09:53:12.381487+00:00 app[release.3191]: File "/app/.heroku/python/lib/python3.10/site-packages/aiohttp/connector.py", line 905, in _create_connection 2022-09-20T09:53:12.381487+00:00 app[release.3191]: _, proto = await self._create_proxy_connection(req, traces, timeout) 2022-09-20T09:53:12.381488+00:00 app[release.3191]: File "/app/.heroku/python/lib/python3.10/site-packages/aiohttp/connector.py", line 1275, in _create_proxy_connection 2022-09-20T09:53:12.381489+00:00 app[release.3191]: resp = await proxy_resp.start(conn) 2022-09-20T09:53:12.381489+00:00 app[release.3191]: File "/app/.heroku/python/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 900, in start 2022-09-20T09:53:12.381490+00:00 app[release.3191]: raise ClientResponseError( 2022-09-20T09:53:12.381490+00:00 app[release.3191]: aiohttp.client_exceptions.ClientResponseError: 400, message='Expected HTTP/',

Blackhatfrance avatar Sep 20 '22 09:09 Blackhatfrance