Files
openclaw/extensions
SidQin-cyber dd800fd135 fix(feishu): check response.ok before calling response.json() in streaming card
When the Feishu API returns a non-2xx response (e.g. 500 internal error),
the body may be HTML or plain text instead of JSON, causing response.json()
to throw a JSON parse error. This obscures the real HTTP error.

Now checks response.ok and throws with the HTTP status before attempting
JSON parsing, in both the token acquisition and card creation paths.

Made-with: Cursor
2026-03-05 01:36:09 -08:00
..