Skip to content

Error on file upload #15

@matt-sd-watson

Description

@matt-sd-watson

Using the file upload endpoint in Docker, i get the following error:

  File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 72, in app
    response = await func(request)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 278, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/server/server.py", line 203, in get_tile
    tile = ome_connection.get_combined_image(
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/server/OmeZarrConnector/connector/connect.py", line 257, in get_combined_image
    image = self.get_tile_image(image_id, zoom_level, channel, tile_x, tile_y)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/server/OmeZarrConnector/connector/connect.py", line 179, in get_tile_image
    da_zarr = da.from_zarr(root[zarr_zoom_level])
                           ~~~~^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/zarr/hierarchy.py", line 500, in __getitem__
    raise KeyError(item)
KeyError: 4

My docker deployment is as follows:

docker run -p 8080:8080 -v /home/admin/Downloads/tv-import:/tv-import -v /home/admin/Downloads/tv-store:/tv-store tv

with a public sub directory under tv-import

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions