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

gtsystem / lightkube / 17969083791 / 3
94%
master: 94%

Build:
DEFAULT BRANCH: master
Ran 24 Sep 2025 07:05AM UTC
Files 26
Run time 0s
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

24 Sep 2025 07:04AM UTC coverage: 93.607% (-0.1%) from 93.745%
17969083791.3

push

github

gtsystem
Fix httpx.ResponseNotRead if streaming unready pod logs

If calling Client.log() on a Pod that exists but the container has not
started yet, the Kubernetes API will return 400, considering that a
client error.

Lightkube will try to convert that httpx.HTTPStatusError into an
ApiError. While doing so, it will read the response body for the Status
object that the Kubernetes API returns on errors.

However, if the `follow` parameter is True, this function will set
`stream` to True, which will instruct httpx to delay reading of the
response. Then, when lightkube attempts to parse the response body,
httpx errors because it has not yet been read.

To fix this, simply read the body before creating the error. Now an
ApiError will be raised with the status set to 400 as expected.

1186 of 1267 relevant lines covered (93.61%)

0.94 hits per line

Source Files on job 17969083791.3
  • Tree
  • List 26
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 17969083791
  • 8cfe0c97 on github
  • Prev Job for on master (#17355602970.2)
  • Next Job for on master (#18816906713.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