Clawith icon indicating copy to clipboard operation
Clawith copied to clipboard

批量开/关工具报错

Open zhlqe opened this issue 8 months ago • 5 comments

Pre-checks

Deployment Method

Docker

Steps to Reproduce

Image

Expected vs Actual Behavior

可以批量管理工具

Logs / Screenshots

No response

zhlqe avatar Apr 02 '26 13:04 zhlqe

That's strange. We didn't encounter this issue in testing with either the latest code version or version 1.8.2 beta 2.

wisdomqin avatar Apr 02 '26 14:04 wisdomqin

Image Image

zhlqe avatar Apr 02 '26 14:04 zhlqe

That's strange. We didn't encounter this issue in testing with either the latest code version or version 1.8.2 beta 2.

This issue also appeared in my local environment. My version number is v1.8.0-beta.2 (5576d9e)

39499740 avatar Apr 02 '26 14:04 39499740

Thanks for reporting this! We've identified the root cause and pushed a fix.

Root Cause: FastAPI route ordering conflict. The parameterized route PUT /{tool_id} was defined before the literal route PUT /bulk, causing older versions of FastAPI/Starlette to attempt parsing "bulk" as a uuid.UUID path parameter — which fails with a 422 Unprocessable Entity instead of falling through to the correct /bulk route.

Fix (commit 19184c9):

  1. Reordered /bulk route to be defined before /{tool_id} (standard FastAPI best practice: literal paths before parameterized paths).
  2. Improved frontend error handling so Pydantic validation errors display readable messages instead of [object Object].

To update your deployment:

git pull origin main
# Rebuild frontend & restart backend as usual

This fix will also be included in the upcoming patch release.

wisdomqin avatar Apr 02 '26 14:04 wisdomqin

This has been fixed on main — the /bulk route is now defined before /{tool_id} to prevent FastAPI from matching "bulk" as a UUID. Closing.

wisdomqin avatar Apr 03 '26 04:04 wisdomqin