Skip to content

fix(triage): fetch the linked Bugsnag event and rank errors by users - #1646

Merged
bmc08gt merged 2 commits into
code/cashfrom
fix/triage-bugsnag-event-url
Oct 1, 2026
Merged

bmc08gt merged 2 commits into
code/cashfrom
fix/triage-bugsnag-event-url

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

/triage step 2 failed on every run: bugsnag-top.sh emitted event_url as /projects/{pid}/errors/{id}/events/{event_id}, which returns 404. Bugsnag serves a single event from the project-scoped path, /projects/{pid}/events/{event_id}.

Related fixes in the same script:

  • --url ignored ?event_id= and always took the error's latest event, so a link to a specific event was triaged against whichever event came last. It now uses the linked event, and --event-id does the same alongside --error-id.
  • release was always "unknown" because the events list doesn't include app info. It's now read from the full event, at the cost of one extra API request.
  • The top open error is now ranked by affected users rather than event count. Under sort=events, --all picked a 408-event burst from 0 identified users that stopped on 2026-08-08, ahead of open errors seen today by 75 users. Errors with no identified user (for example, crashes during onboarding) now rank lower; a specific one can still be triaged with --url or --error-id.

bugsnag-top.sh built event_url as /projects/{pid}/errors/{id}/events/{event_id},
which Bugsnag answers with 404; the event-by-id endpoint is project-scoped
(/projects/{pid}/events/{event_id}), so step 2 of /triage had no event to read.

--url also dropped ?event_id= and always took the latest event, so a link to a
specific event could be triaged against a different one. It now honours the
query parameter, and --event-id does the same alongside --error-id.

release always came back "unknown" because the events list omits app info. It
is now read from the full event.
@bmc08gt bmc08gt self-assigned this Oct 1, 2026
@github-actions github-actions Bot added the type: fix Bug fix label Oct 1, 2026
The default pick sorted by event count, so a single device in a retry loop
outranked errors hitting many users. With --all, the top pick was a 408-event
burst from 0 identified users, dead since 2026-08-08, ahead of open errors
seen today by 75 users. Sorting by users makes those the first to triage.
@bmc08gt bmc08gt changed the title fix(triage): fetch the linked Bugsnag event and its release fix(triage): fetch the linked Bugsnag event and rank errors by users Oct 1, 2026
@bmc08gt
bmc08gt merged commit bcbb0cd into code/cash Oct 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant