MagicStack / MagicStack/uvloop

"Future exception was never retrieved" in Loop.create_connection

Đang mở
#437 3 bình luận 0 reaction 1 người được giao Xem trên GitHub

@fantix đang làm issue này rồi.

Từ ngày 24/8/2021.

Ngôn ngữ chính
Cython
Star
11.9k
Fork
615
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

  • uvloop version: 0.16.0
  • aiohttp version: 3.7.4.post0
  • Python version: 3.9.5
  • Platform: Ubuntu 5.11.0-31-generic
  • Can you reproduce the bug with PYTHONASYNCIODEBUG in env?: Yes
  • Does uvloop behave differently from vanilla asyncio? How?: Yes. This error does not occur
ERROR    [aiohttp:connector.py:_create_proxy_connection:1139]: Future exception was never retrieved
future: <Future finished exception=ConnectionResetError() created at /home/user/.local/lib/python3.9/site-packages/aiohttp/connector.py:969>
source_traceback: Object created at (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 912, in _bootstrap
    self._bootstrap_inner()
  File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "/home/user/worker/main.py", line 70, in worker
    asyncio.run(async_worker(q_tasks, fetcher))
  File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/home/user/worker/main.py", line 31, in async_loop_processing_tasks
    await fetcher.fetch_task('https://' + domain, 'curl')
  File "/home/user/worker/processing.py", line 85, in fetch_task
    return await self._fetch_task(url, user_agent)
  File "/home/user/worker/processing.py", line 199, in _fetch_task
    stat, info = await proto_http.fetch_url(
  File "/home/user/worker/proto_http.py", line 126, in fetch_url
    http_res = await session.get(
  File "/home/user/.local/lib/python3.9/site-packages/aiohttp/client.py", line 520, in _request
    conn = await self._connector.connect(
  File "/home/user/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 535, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/home/user/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 890, in _create_connection
    _, proto = await self._create_proxy_connection(req, traces, timeout)
  File "/home/user/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 1139, in _create_proxy_connection
    transport, proto = await self._wrap_create_connection(
  File "/home/user/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 969, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs)  # type: ignore  # noqa
Traceback (most recent call last):
  File "uvloop/sslproto.pyx", line 517, in uvloop.loop.SSLProtocol._on_handshake_complete
ConnectionResetError

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.