批量开/关工具报错
Pre-checks
- [x] I have searched existing issues and this is not a duplicate.
Deployment Method
Docker
Steps to Reproduce
Expected vs Actual Behavior
可以批量管理工具
Logs / Screenshots
No response
That's strange. We didn't encounter this issue in testing with either the latest code version or version 1.8.2 beta 2.
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)
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):
- Reordered
/bulkroute to be defined before/{tool_id}(standard FastAPI best practice: literal paths before parameterized paths). - 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.
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.