Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetworkError: httpx.ReadError: #185

Open
sentry-io bot opened this issue Oct 30, 2023 · 0 comments
Open

NetworkError: httpx.ReadError: #185

sentry-io bot opened this issue Oct 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@sentry-io
Copy link

sentry-io bot commented Oct 30, 2023

Sentry Issue: MISFORTUNE-BACKEND-P

ConnectionResetError: [Errno 104] Connection reset by peer
  File "asyncio/selector_events.py", line 995, in _read_ready__data_received
    data = self._sock.recv(self.max_size)

BrokenResourceError: 
  File "httpcore/_exceptions.py", line 10, in map_exceptions
    yield
  File "httpcore/_backends/anyio.py", line 34, in read
    return await self._stream.receive(max_bytes=max_bytes)
  File "anyio/streams/tls.py", line 196, in receive
    data = await self._call_sslobject_method(self._ssl_object.read, max_bytes)
  File "anyio/streams/tls.py", line 138, in _call_sslobject_method
    data = await self.transport_stream.receive()
  File "anyio/_backends/_asyncio.py", line 1212, in receive
    raise self._protocol.exception

ReadError: 
(7 additional frame(s) were not displayed)
...
  File "httpcore/_async/http11.py", line 176, in _receive_response_headers
    event = await self._receive_event(timeout=timeout)
  File "httpcore/_async/http11.py", line 212, in _receive_event
    data = await self._network_stream.read(
  File "httpcore/_backends/anyio.py", line 31, in read
    with map_exceptions(exc_map):
  File "contextlib.py", line 155, in __exit__
    self.gen.throw(typ, value, traceback)
  File "httpcore/_exceptions.py", line 14, in map_exceptions
    raise to_exc(exc) from exc

ReadError: 
(4 additional frame(s) were not displayed)
...
  File "httpx/_client.py", line 1682, in _send_handling_redirects
    response = await self._send_single_request(request)
  File "httpx/_client.py", line 1719, in _send_single_request
    response = await transport.handle_async_request(request)
  File "httpx/_transports/default.py", line 365, in handle_async_request
    with map_httpcore_exceptions():
  File "contextlib.py", line 155, in __exit__
    self.gen.throw(typ, value, traceback)
  File "httpx/_transports/default.py", line 83, in map_httpcore_exceptions
    raise mapped_exc(message) from exc

NetworkError: httpx.ReadError: 
(8 additional frame(s) were not displayed)
...
  File "telegram/_bot.py", line 635, in _do_post
    return await request.post(
  File "telegram/request/_baserequest.py", line 168, in post
    result = await self._request_wrapper(
  File "telegram/request/_baserequest.py", line 288, in _request_wrapper
    raise exc
  File "telegram/request/_baserequest.py", line 278, in _request_wrapper
    code, payload = await self.do_request(
  File "telegram/request/_httpxrequest.py", line 243, in do_request
    raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err

No error handlers are registered, logging exception.
@sentry-io sentry-io bot added the bug Something isn't working label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

0 participants