fix: webhook handles JSON body push format from Jimi #6

Merged
kianiadee merged 1 commit from quality-program-2026-04-12 into main 2026-04-21 08:57:04 +00:00
Owner

Jimi integration push API sends Content-Type: application/json with body {"token":"...","data_list":[...]}, not form-encoded. FastAPI Form() defaulted to empty string so all alarm pushes were silently 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 7 push endpoints updated.

Deploys alarms live once Coolify redeploys main.

Jimi integration push API sends `Content-Type: application/json` with body `{"token":"...","data_list":[...]}`, not form-encoded. FastAPI Form() defaulted to empty string so all alarm pushes were silently 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 7 push endpoints updated. Deploys alarms live once Coolify redeploys main.
kianiadee added 1 commit 2026-04-21 08:56:55 +00:00
fix: handle JSON body push format from Jimi integration API
Some checks failed
Static Analysis / static (push) Waiting to run
Tests / test (push) Waiting to run
Static Analysis / static (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
ef36ebebea
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>
kianiadee merged commit 809dbb165c into main 2026-04-21 08:57:04 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: kianiadee/tracksolid_timescale_grafana_prod#6
No description provided.