Skip to content

v2.22.27

Latest

Choose a tag to compare

@luk384090-cloud luk384090-cloud released this 24 Jul 10:01

What's Changed

Bug Fixes

  • Fix: Handle empty and non-JSON responses in DashScopeResult (#247)
    • Add null/empty message checks and try-catch for all JsonUtils.parse call sites
    • Guard against malformed/empty WebSocket and HTTP responses
    • Introduce PublicErrorDef for standardized error codes and messages

Refactoring

  • Extract private helpers in DashScopeResult to reduce code redundancy
    • Added setInternalError(), parseJson(), populateFromHttpJson(), and fromWebSocketMessage() methods
    • Centralize OUTPUT/DATA handling into handleOutputField/handleDataField helpers
    • Eliminate repeated error-handling and JSON field extraction logic

Code Quality

  • Apply lint formatting to DashScopeResult and PublicErrorDef
  • Improve code maintainability and readability

Full Changelog: v2.22.26...v2.22.27

👥 Contributors

luk384090-cloud
lzsweb