This paste expires on 2023-04-03 09:34:52.239885. Repaste, or download this paste. . Pasted through web.

@app.get("/files/all/run")
async def run_all_spotter(imgs: list = Path(..., description="List of images")):
    return {"path": "hi"}
Filename: None. Size: 141b. View raw, , hex, or download this file.
  File "C:\Users\pamao\Documents\Github\countagen-gui\backend\env\Lib\site-packages\fastapi\routing.py", line 600, in add_api_route
    route = route_class(
            ^^^^^^^^^^^^
  File "C:\Users\pamao\Documents\Github\countagen-gui\backend\env\Lib\site-packages\fastapi\routing.py", line 446, in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\pamao\Documents\Github\countagen-gui\backend\env\Lib\site-packages\fastapi\dependencies\utils.py", line 328, in get_dependant
    if is_body_param(param_field=param_field, is_path_param=is_path_param):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\pamao\Documents\Github\countagen-gui\backend\env\Lib\site-packages\fastapi\dependencies\utils.py", line 491, in is_body_param
    assert isinstance(
AssertionError: Param: imgs can only be a request body, using Body()
Filename: None. Size: 1004b. View raw, , hex, or download this file.