fix: webhook handles JSON body push format from Jimi #6
Loading…
Reference in a new issue
No description provided.
Delete branch "quality-program-2026-04-12"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Jimi integration push API sends
Content-Type: application/jsonwith body{"token":"...","data_list":[...]}, not form-encoded. FastAPI Form() defaulted to empty string so all alarm pushes were silently discarded withFailed to parse data_list:warnings.Replaces per-endpoint
Form()params with a shared_parse_request()helper that tries JSON body first, falls back to form-encoded. All 7 push endpoints updated.Deploys alarms live once Coolify redeploys main.
Jimi's integration push API (tracksolidprodocs.jimicloud.com) sends Content-Type: application/json with body {"token":"...","data_list":[...]}, not form-encoded. FastAPI Form() silently defaulted to "" so all pushes were discarded with "Failed to parse data_list:" warnings. Replaces per-endpoint Form() params with a shared _parse_request() helper that tries JSON body first, falls back to form-encoded. All seven push endpoints (pushobd, pushfaultinfo, pushalarm, pushgps, pushhb, pushtripreport, pushevent) updated. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>