[PR #24412] GPT-5-high fix #24310 bug. #30617

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

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

State: closed
Merged: No


Summary

Another pure GPT-5-high and cursor auto fix.

ExternalApi.handle_error no longer accesses self.errors directly (Flask-RESTX lacks that attribute). It now checks for an errors dict via getattr before using it.

it’s related to “try flask_restful -> flask_restx (#24310)”. Flask-RESTful Api exposes errors; Flask-RESTX does not. Your error handler assumed it existed and raised AttributeError.

Also fixed Flask-RESTX marshalling crashes by updating custom fields:

  • AppIconUrlField.output(self, key, obj, ordered: bool = False)
  • AvatarUrlField.output(self, key, obj, ordered: bool = False)
**Original Pull Request:** https://github.com/langgenius/dify/pull/24412 **State:** closed **Merged:** No --- ## Summary Another pure GPT-5-high and cursor auto fix. ExternalApi.handle_error no longer accesses self.errors directly (Flask-RESTX lacks that attribute). It now checks for an errors dict via getattr before using it. it’s related to “try flask_restful -> flask_restx (#24310)”. Flask-RESTful Api exposes errors; Flask-RESTX does not. Your error handler assumed it existed and raised AttributeError. Also fixed Flask-RESTX marshalling crashes by updating custom fields: * AppIconUrlField.output(self, key, obj, ordered: bool = False) * AvatarUrlField.output(self, key, obj, ordered: bool = False)
yindo added the pull-request label 2026-02-21 20:47:53 -05:00
yindo closed this issue 2026-02-21 20:47:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#30617