-
Notifications
You must be signed in to change notification settings - Fork 217
Closed
Description
Problem description
I am loading this mosaic json NOAA_Nashville_Tornado.json from /mosaicjson/tiles/WebMercatorQuad/{z}/{x}/{y}@1x?url= on a page with nothing but a leaflet map on it
Whenever the view is not able to be completely filled by the mosaicJson processes die in the docker container
Expected Output
Processes dont randomly die
Environment Information
Docker for windows
docker run --platform=linux/amd64 -p 8000:8000 -e AWS_NO_SIGN_REQUEST=True -e AWS_ACCESS_KEY_ID=xxx -e AWS_SECRET_ACCESS_KEY=xxx --rm -it ghcr.io/developmentseed/titiler:latest uvicorn titiler.application.main:app --host 0.0.0.0 --port 8000 --workers 8
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 75, in app
response = await f(request)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/fastapi/routing.py", line 302, in app
raw_response = await run_endpoint_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/fastapi/routing.py", line 215, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/starlette/concurrency.py", line 38, in run_in_threadpool
return await anyio.to_thread.run_sync(func)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 2476, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 967, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/titiler/mosaic/factory.py", line 651, in tile
image, assets = src_dst.tile(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/cogeo_mosaic/backends/base.py", line 313, in tile
raise NoAssetFoundError(f"No assets found for tile {z}-{x}-{y}")
cogeo_mosaic.errors.NoAssetFoundError: No assets found for tile 15-8498-12852
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
File "/usr/local/lib/python3.12/site-packages/starlette/applications.py", line 113, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.12/site-packages/starlette/middleware/errors.py", line 186, in __call__
raise exc
File "/usr/local/lib/python3.12/site-packages/starlette/middleware/errors.py", line 164, in __call__
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.12/site-packages/titiler/core/middleware.py", line 57, in __call__
await self.app(scope, receive, send_wrapper)
File "/usr/local/lib/python3.12/site-packages/starlette_cramjam/middleware.py", line 121, in __call__
await responder(scope, receive, send)
File "/usr/local/lib/python3.12/site-packages/starlette_cramjam/middleware.py", line 151, in __call__
await self.app(scope, receive, self.send_with_compression)
File "/usr/local/lib/python3.12/site-packages/starlette/middleware/cors.py", line 85, in __call__
await self.app(scope, receive, send)
File "/usr/local/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
raise exc
File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 716, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 736, in app
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 290, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 78, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 63, in wrapped_app
await response(scope, receive, sender)
File "/usr/local/lib/python3.12/site-packages/starlette/responses.py", line 165, in __call__
await send({"type": prefix + "http.response.body", "body": self.body})
File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 39, in sender
await send(message)
File "/usr/local/lib/python3.12/site-packages/starlette/_exception_handler.py", line 39, in sender
await send(message)
File "/usr/local/lib/python3.12/site-packages/starlette_cramjam/middleware.py", line 188, in send_with_compression
await self.send(message)
File "/usr/local/lib/python3.12/site-packages/titiler/core/middleware.py", line 55, in send_wrapper
await send(message)
File "/usr/local/lib/python3.12/site-packages/starlette/middleware/errors.py", line 161, in _send
await send(message)
File "/usr/local/lib/python3.12/site-packages/uvicorn/protocols/http/h11_impl.py", line 500, in send
output = self.conn.send(event=h11.Data(data=data))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/h11/_connection.py", line 538, in send
data_list = self.send_with_data_passthrough(event)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/h11/_connection.py", line 571, in send_with_data_passthrough
writer(event, data_list.append)
File "/usr/local/lib/python3.12/site-packages/h11/_writers.py", line 65, in __call__
self.send_data(event.data, write)
File "/usr/local/lib/python3.12/site-packages/h11/_writers.py", line 91, in send_data
raise LocalProtocolError("Too much data for declared Content-Length")
h11._util.LocalProtocolError: Too much data for declared Content-Length
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels