Skip to content

fix(worker): don't fail a whole board on one stop's odd asw_id - #57

Merged
i11v merged 1 commit into
mainfrom
fix/worker-board-asw-id
Oct 17, 2026
Merged

i11v merged 1 commit into
mainfrom
fix/worker-board-asw-id

Conversation

@i11v

@i11v i11v commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Requested by Ilnur · project thread

Before: when Golemio sent a non-number in any stop's asw_id.stop, decoding the departureboards response failed and every stop in that request showed no departures (Honeycomb: Expected number … at ["stops"][8]["asw_id"]["stop"] on an 8-stop board, trace f9b8fc9337738213e3cfba28b21228c7).

After: the other stops decode as usual, and the odd stop still gets its departures, matched through its stop_id.

How: PidStop.asw_id accepts numbers or numeric strings, and anything else decodes to null via Schema.catchDecoding instead of failing. toBoards falls back to parseAswStopId(stop_id) (U530Z2P → node 530, stop 2) when asw_id is null. A test covers a null stop, numeric strings and a garbage asw_id in one response.


Generated by Claude Code

Golemio sometimes sends a non-number in a stop's asw_id.stop, which made
the departureboards decode fail for every stop in the request. An
undecodable asw_id now decodes to null (numeric strings are accepted),
and toBoards falls back to the ASW id in the stop_id (U530Z2P → 530/2).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YW796MB3Ksife2TrUfeytT
@i11v i11v self-assigned this Oct 17, 2026
@github-actions

Copy link
Copy Markdown

🚀 Preview deployed: https://preview-57.tablo.run
fallback: https://tablo-pr-57.i11v.workers.dev

@i11v
i11v marked this pull request as ready for review October 17, 2026 22:13
@i11v
i11v merged commit 14c9ebf into main Oct 17, 2026
2 checks passed
@i11v
i11v deleted the fix/worker-board-asw-id branch October 17, 2026 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants