• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nicklaw5 / helix / 24360260385 / 1
93%
main: 93%

Build:
Build:
LAST BUILD BRANCH: copilot/bugfix-helixclient-eventsub-error
DEFAULT BRANCH: main
Ran 13 Apr 2026 06:35PM UTC
Files 42
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Apr 2026 06:34PM UTC coverage: 92.882% (+0.04%) from 92.843%
24360260385.1

push

github

web-flow
fix: Return non-nil error when Twitch API responds with an error body (#259)

* Initial plan

* Return non-nil error when Twitch API responds with error body

Add ErrTwitchResponseError sentinel and pullErrorFromResponse helper to
helix.go. All endpoint methods now return a wrapped ErrTwitchResponseError
when the response body contains a non-zero error status field, making it
easier for callers to detect Twitch API errors via the standard error
interface or errors.Is.

Also reset response error fields at the start of each doRequest retry loop
so that a successful retry after a token refresh does not inherit the stale
error state from the preceding 401 response.

Update all test files to conditionally check err only for 2xx responses
or handle the new ErrTwitchResponseError for expected non-2xx responses.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: nicklaw5 <7908386+nicklaw5@users.noreply.github.com>

* Add UPGRADING.md with v3 migration guide

Agent-Logs-Url: https://github.com/nicklaw5/helix/sessions/3fcbaaf4-b4dc-40ec-9306-a88802d12d42

Co-authored-by: nicklaw5 <7908386+nicklaw5@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: nicklaw5 <7908386+nicklaw5@users.noreply.github.com>

1866 of 2009 relevant lines covered (92.88%)

6414.56 hits per line

Source Files on job 24360260385.1
  • Tree
  • List 42
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24360260385
  • 2217a3dc on github
  • Prev Job for on v3 (#24313148069.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc