Traceback (most recent call last):


 "/Users/krotose1/workspace/skv/httpx/wotk_with_bugs.py", line 11, in <module>

resp = client.get("http://127.0.0.1:8080")


 "/Users/krotose1/workspace/skv/httpx/httpx/_client.py", line 907, in get

return self.request(


 "/Users/krotose1/workspace/skv/httpx/httpx/_client.py", line 733, in request

return self.send(


 "/Users/krotose1/workspace/skv/httpx/httpx/_client.py", line 767, in send

response = self._send_handling_auth(


 "/Users/krotose1/workspace/skv/httpx/httpx/_client.py", line 805, in _send_handling_auth

response = self._send_handling_redirects(


 "/Users/krotose1/workspace/skv/httpx/httpx/_client.py", line 837, in _send_handling_redirects

response = self._send_single_request(request, timeout)


 "/Users/krotose1/workspace/skv/httpx/httpx/_client.py", line 861, in _send_single_request

(status_code, headers, stream, ext) = transport.request(


 "/Users/krotose1/.pyenv/versions/3.8.5/lib/python3.8/contextlib.py", line 131, in __exit__

self.gen.throw(type, value, traceback)


 "/Users/krotose1/workspace/skv/httpx/httpx/_exceptions.py", line 343, in map_exceptions

raise mapped_exc(message, **kwargs) from exc
# type: ignore
httpx.RemoteProtocolError: peer unexpectedly closed connection

Traceback (most recent call last):

 "/usr/local/lib/python3.5/site-packages/asyncio-3.4.3-py3.5.egg/asyncio/events.py", line 120, in _run
self._callback(*self._args)

 "/usr/local/lib/python3.5/site-packages/asyncio-3.4.3-py3.5.egg/asyncio/selector_events.py", line 669, in _read_ready
self._protocol.data_received(data)

 "/usr/local/lib/python3.5/site-packages/asyncio-3.4.3-py3.5.egg/asyncio/sslproto.py", line 499, in data_received
self._app_protocol.data_received(chunk)

 "apns-server-http2.py", line 57, in data_received
self.conn.reset_stream(event.stream_id)

 "/usr/local/lib/python3.5/site-packages/h2-2.1.1-py3.5.egg/h2/connection.py", line 689, in reset_stream
frames = stream.reset_stream(error_code)

 "/usr/local/lib/python3.5/site-packages/h2-2.1.1-py3.5.egg/h2/stream.py", line 774, in reset_stream
self.state_machine.process_input(StreamInputs.SEND_RST_STREAM)

 "/usr/local/lib/python3.5/site-packages/h2-2.1.1-py3.5.egg/h2/stream.py", line 108, in process_input
return func(self, previous_state)

 "/usr/local/lib/python3.5/site-packages/h2-2.1.1-py3.5.egg/h2/stream.py", line 286, in send_on_closed_stream
raise StreamClosedError(self.stream_id)h2.exceptions.StreamClosedError: 17