Files
frigate/frigate
ryzendigo ab332c0395 fix: check HTTP response status before parsing JSON body
upload_image() calls r.json() before checking r.ok. If the server
returns an error response (401, 500, etc) with a non-JSON body,
this raises a confusing JSONDecodeError instead of the intended
'Unable to get signed urls' error message.

Move the r.ok check before the r.json() call.
2026-03-16 14:47:53 +08:00
..
2026-03-04 15:53:20 -07:00
2026-03-04 10:07:34 -06:00
2025-08-26 08:11:37 -05:00
2026-03-04 10:07:34 -06:00
2026-03-15 07:26:36 -05:00
2026-02-28 07:04:43 -07:00
2026-03-04 10:07:34 -06:00
2026-03-04 10:07:34 -06:00
2026-03-04 10:07:34 -06:00
2021-01-26 21:40:33 -06:00
2026-03-04 10:07:34 -06:00
2026-02-03 13:29:52 -06:00
2026-03-04 10:07:34 -06:00
2026-03-04 10:07:34 -06:00