Issue poll fails on a Gitea timeline page that is null #995

Closed
opened 2026-11-14 09:40:50 +00:00 by sharang · 0 comments
Owner

The Gitea issue poll (#953) fails for one Prüfobjekt on prod at every poll, every 30 minutes since at least 0.4.14 and still on 0.4.15:

issue poll failed: Issue tracker error: Failed to parse Gitea issue timeline: invalid type: null, expected a sequence at line 1 column 4

GiteaTracker::list_all reads each page as a JSON array. Gitea answers an issue's timeline with null instead of [] (past its end, or when there is nothing to list), so the parse fails and the whole poll of that Prüfobjekt fails with it: no close or reopen made by a person reaches Prüfwerk for it.

Fix: a null page ends the list like an empty one. A timeline without the close/reopen entry is already handled as "nothing a person decided" (skipped), so this changes nothing else.

Acceptance: a test with a fake Gitea that answers null; after deploy the poll reports failed: 0 for that target.

The Gitea issue poll (#953) fails for one Prüfobjekt on prod at every poll, every 30 minutes since at least 0.4.14 and still on 0.4.15: ``` issue poll failed: Issue tracker error: Failed to parse Gitea issue timeline: invalid type: null, expected a sequence at line 1 column 4 ``` `GiteaTracker::list_all` reads each page as a JSON array. Gitea answers an issue's timeline with `null` instead of `[]` (past its end, or when there is nothing to list), so the parse fails and the whole poll of that Prüfobjekt fails with it: no close or reopen made by a person reaches Prüfwerk for it. **Fix:** a `null` page ends the list like an empty one. A timeline without the close/reopen entry is already handled as "nothing a person decided" (skipped), so this changes nothing else. **Acceptance:** a test with a fake Gitea that answers `null`; after deploy the poll reports `failed: 0` for that target.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#995