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

sgerrand / ex_teya / 35831876402
100%

Build:
DEFAULT BRANCH: main
Ran 23 Sep 2026 07:28AM UTC
Jobs 1
Files 20
Run time 1min
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

23 Sep 2026 07:28AM UTC coverage: 100.0%. Remained the same
35831876402

push

github

web-flow
fix(sse): keep the error body on failed stream requests (#39)

* fix(sse): keep the error body on failed stream requests

The SSE plugin decodes every chunk as event-stream bytes. An error
response carries no frame delimiter, so its body stayed in the plugin's
buffer and never reached the response. Errors from subscribe/2 and get/2
came back with a status but no code or message.

Wrap the plugin's collector and keep the raw bytes whenever the status is
not a success, so Req decodes the body as usual.

* fix(sse): treat only 200 as a stream and cap the error body

Review follow-ups on the error body collector.

The collector treated any 2xx as a stream, but stream/7 and the frame
handler both treat only 200 as success. A 202 or 203 reply therefore went
to the SSE decoder, forwarded no frames, and left an empty body — exactly
the blank error this change set out to remove.

The error body also had no size limit, so a large error page from a
gateway was buffered in full inside the supervised task. Teya.Error keeps
only the first 500 characters, so stop accumulating past 8 KB.

9 of 9 new or added lines in 1 file covered. (100.0%)

156 of 156 relevant lines covered (100.0%)

12.12 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35831876402.1 23 Sep 2026 07:28AM UTC 20
100.0
GitHub Action Run
Source Files on build 35831876402
  • Tree
  • List 20
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35831876402
  • ee0c9122 on github
  • Prev Build on main (#35758823331)
  • Next Build on main (#35980766899)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc