Skip to content

fix: work around broken log API endpoint by ignoring RST_STREAM data frames#1877

Merged
gandie merged 1 commit into
masterfrom
fix/fix-container-logs
Jun 1, 2026
Merged

fix: work around broken log API endpoint by ignoring RST_STREAM data frames#1877
gandie merged 1 commit into
masterfrom
fix/fix-container-logs

Conversation

@martin-helmich
Copy link
Copy Markdown
Member

This introduces a very ugly workaround for the "container logs" command, with currently hangs indefinitely (see #1677).

The reason for this issue is that the respective API endpoints chooses to reset the HTTP/2 data stream with a RST_STREAM frame, instead of properly ending the stream.

Until this can be fixed upstream, we work around this by re-implementing the respective API client, using low-level http2 client libraries, which give us direct access to the HTTP/2 data frames and allowing us to deliberately ignore the RST_STREAM frame.

Fixes #1677

@martin-helmich martin-helmich force-pushed the fix/fix-container-logs branch from 5fb5050 to b40f69a Compare May 31, 2026 12:55
@gandie gandie self-requested a review June 1, 2026 07:55
@gandie
Copy link
Copy Markdown
Contributor

gandie commented Jun 1, 2026

Haha! Force is strong with this one! Current call even runs into error these days:

~/M/cli (master|✔) $ node ~/Mittwald_Dev/cli/bin/run.js container logs c-XXXXXX
┌──────────────────────────────────────────────────────────────────────────────┐
│  API CLIENT ERROR                                                            │
│  [...]                                                                       │
│  An error occurred while communicating with the API: aborted                 │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

versus branch checkout working as expected.

Copy link
Copy Markdown
Contributor

@gandie gandie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gandie gandie merged commit 8844603 into master Jun 1, 2026
11 checks passed
@gandie gandie deleted the fix/fix-container-logs branch June 1, 2026 08:47
mittwald-machine added a commit that referenced this pull request Jun 1, 2026
## [1.17.1](v1.17.0...v1.17.1) (2026-06-01)

### Bug Fixes

* resolve hanging tight loop on windows ([#1873](#1873)) ([b863a5b](b863a5b))
* work around broken log API endpoint by ignoring RST_STREAM data frames ([#1877](#1877)) ([8844603](8844603)), closes [#1677](#1677) [#1677](#1677)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mw container logs hangs indefinitely due to API request retry

2 participants