[PR #29552] fix: remove validate=True to fix flask-restx AttributeError #32466

Closed
opened 2026-02-21 20:51:27 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/29552

State: closed
Merged: Yes


Summary

  • Remove validate=True from @console_ns.expect() decorators to fix 500 Internal Server Error
  • This fixes a flask-restx bug where accessing self.api.refresolver fails with AttributeError: Api does not have refresolver attribute
  • Pydantic validation via model_validate() is already in place, making flask-restx validation redundant

fixes #29554

Test plan

  • Test /console/api/apps/<app_id>/trigger-enable endpoint - should no longer return 500 error
  • Test /console/api/rag/pipelines/<pipeline_id>/workflows/published/datasource/nodes/<node_id>/preview endpoint

🤖 Generated with Claude Code

**Original Pull Request:** https://github.com/langgenius/dify/pull/29552 **State:** closed **Merged:** Yes --- ## Summary - Remove `validate=True` from `@console_ns.expect()` decorators to fix 500 Internal Server Error - This fixes a flask-restx bug where accessing `self.api.refresolver` fails with `AttributeError: Api does not have refresolver attribute` - Pydantic validation via `model_validate()` is already in place, making flask-restx validation redundant fixes #29554 ## Test plan - [ ] Test `/console/api/apps/<app_id>/trigger-enable` endpoint - should no longer return 500 error - [ ] Test `/console/api/rag/pipelines/<pipeline_id>/workflows/published/datasource/nodes/<node_id>/preview` endpoint 🤖 Generated with [Claude Code](https://claude.com/claude-code)
yindo added the pull-request label 2026-02-21 20:51:27 -05:00
yindo closed this issue 2026-02-21 20:51:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32466