This repository was archived by the owner on Nov 23, 2026. It is now read-only.
Repository navigation
Karrio patch 2026.1.30
·
40 commits
to main
since this release
Hotfix release. SmartKargo tracking lookups returned a 404
SHIPPING_SDK_INTERNAL_ERROR — unconverted data remains: .6571145whenever
the upstream Azure function included a .NET ticks-precision timestamp
(7 fractional digits, e.g.2026-04-17T23:43:17.6571145) in any event of
the response. Python'sstrptime %fcaps at 6 digits — andfromisoformat
only accepts 3 or 6 — so a single offending event aborted the whole parse.
Changes
Fix
- fix(smartkargo): tolerate .NET ticks-precision dates when parsing tracking
events. Event/ETA dates are truncated to microsecond precision (6 digits)
and parsed via atry_formatslist that accepts both the no-fractional and
with-fractional ISO variants, so 7-digit ticks like
2026-04-17T23:43:17.6571145no longer abort the response. Adds a regression
test covering the production payload that triggered the failure.