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

Closed resource error #17

Open
vrbanecd opened this issue Jan 11, 2024 · 0 comments
Open

Closed resource error #17

vrbanecd opened this issue Jan 11, 2024 · 0 comments

Comments

@vrbanecd
Copy link
Collaborator

ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/home/teapot/.local/lib/python3.10/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions
yield
File "/home/teapot/.local/lib/python3.10/site-packages/httpcore/_backends/anyio.py", line 34, in read
return await self._stream.receive(max_bytes=max_bytes)
File "/home/teapot/.local/lib/python3.10/site-packages/anyio/streams/tls.py", line 196, in receive
data = await self._call_sslobject_method(self._ssl_object.read, max_bytes)
File "/home/teapot/.local/lib/python3.10/site-packages/anyio/streams/tls.py", line 138, in _call_sslobject_method
data = await self.transport_stream.receive()
File "/home/teapot/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1210, in receive
raise ClosedResourceError from None
anyio.ClosedResourceError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/teapot/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 66, in map_httpcore_exceptions
yield
File "/home/teapot/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 249, in aiter
async for part in self._httpcore_stream:
File "/home/teapot/.local/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 361, in aiter
async for part in self._stream:
File "/home/teapot/.local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 337, in aiter
raise exc
File "/home/teapot/.local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 329, in aiter
async for chunk in self._connection._receive_response_body(**kwargs):
File "/home/teapot/.local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 198, in _receive_response_body
event = await self._receive_event(timeout=timeout)
File "/home/teapot/.local/lib/python3.10/site-packages/httpcore/_async/http11.py", line 212, in _receive_event
data = await self._network_stream.read(
File "/home/teapot/.local/lib/python3.10/site-packages/httpcore/_backends/anyio.py", line 31, in read
with map_exceptions(exc_map):
File "/usr/local/lib/python3.10/contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "/home/teapot/.local/lib/python3.10/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ReadError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/teapot/.local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/home/teapot/.local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "/home/teapot/.local/lib/python3.10/site-packages/fastapi/applications.py", line 1106, in call
await super().call(scope, receive, send)
File "/home/teapot/.local/lib/python3.10/site-packages/starlette/applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "/home/teapot/.local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in call
raise exc
File "/home/teapot/.local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/home/teapot/.local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in call
raise exc
File "/home/teapot/.local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "/home/teapot/.local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in call
raise e
File "/home/teapot/.local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in call
await self.app(scope, receive, send)
File "/home/teapot/.local/lib/python3.10/site-packages/starlette/routing.py", line 718, in call
await route.handle(scope, receive, send)
File "/home/teapot/.local/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/home/teapot/.local/lib/python3.10/site-packages/starlette/routing.py", line 69, in app
await response(scope, receive, send)
File "/home/teapot/.local/lib/python3.10/site-packages/starlette/responses.py", line 270, in call
async with anyio.create_task_group() as task_group:
File "/home/teapot/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 597, in aexit
raise exceptions[0]
File "/home/teapot/.local/lib/python3.10/site-packages/starlette/responses.py", line 273, in wrap
await func()
File "/home/teapot/.local/lib/python3.10/site-packages/starlette/responses.py", line 262, in stream_response
async for chunk in self.body_iterator:
File "/home/teapot/.local/lib/python3.10/site-packages/httpx/_models.py", line 990, in aiter_raw
async for raw_stream_bytes in self.stream:
File "/home/teapot/.local/lib/python3.10/site-packages/httpx/_client.py", line 146, in aiter
async for chunk in self._stream:
File "/home/teapot/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 248, in aiter
with map_httpcore_exceptions():
File "/usr/local/lib/python3.10/contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "/home/teapot/.local/lib/python3.10/site-packages/httpx/_transports/default.py", line 83, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant