[PR #3026] provide a bit more info in logs when parsing api schema error #23960

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

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

State: closed
Merged: Yes


When parse error, neither user nor admin can get decent error messages, just invalid schema, this is confusing and frustrating, adding a bit more logs could be a good start.

Description

Fixes #2914

  1. print error message when there are exceptions
  2. raise Exception when parse error
  3. delete unused functions

Type of Change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Just a bit code about logging, need no further tests

Suggested Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
  • optional I have made corresponding changes to the documentation
  • optional I have added tests that prove my fix is effective or that my feature works
  • optional New and existing unit tests pass locally with my changes
**Original Pull Request:** https://github.com/langgenius/dify/pull/3026 **State:** closed **Merged:** Yes --- When parse error, neither user nor admin can get decent error messages, just `invalid schema`, this is confusing and frustrating, adding a bit more logs could be a good start. # Description Fixes #2914 1. print error message when there are exceptions 2. raise Exception when parse error 3. delete unused functions ## Type of Change Please delete options that are not relevant. - [x] New feature (non-breaking change which adds functionality) # How Has This Been Tested? Just a bit code about logging, need no further tests # Suggested Checklist: - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [x] My changes generate no new warnings - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods - [ ] `optional` I have made corresponding changes to the documentation - [ ] `optional` I have added tests that prove my fix is effective or that my feature works - [ ] `optional` New and existing unit tests pass locally with my changes
yindo added the pull-request label 2026-02-21 20:22:05 -05:00
yindo closed this issue 2026-02-21 20:22:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#23960