mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix(bluebubbles): preserve exception traceback in webhook parse error
The webhook handler's form/JSON parse fallback (`_handle_webhook`) logs
the `Exception` raised while decoding the inbound payload but drops
the traceback. When a malformed or unexpected payload shape arrives
from the BlueBubbles server in production, we see:
[bluebubbles] webhook parse error: ...
with no call-site. Add `exc_info=True` so the stack is preserved.
This commit is contained in:
parent
73bccc94c7
commit
a74d759061
1 changed files with 1 additions and 1 deletions
|
|
@ -775,7 +775,7 @@ class BlueBubblesAdapter(BasePlatformAdapter):
|
|||
)[0]
|
||||
payload = json.loads(payload_str) if payload_str else {}
|
||||
except Exception as exc:
|
||||
logger.error("[bluebubbles] webhook parse error: %s", exc)
|
||||
logger.error("[bluebubbles] webhook parse error: %s", exc, exc_info=True)
|
||||
return web.json_response({"error": "invalid payload"}, status=400)
|
||||
|
||||
event_type = self._value(payload.get("type"), payload.get("event")) or ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue