[PR #74] [CLOSED] fix(http): disable HTTP/2 to fix undici decompression issues #248

Closed
opened 2026-02-15 17:16:29 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/openclaw/clawhub/pull/74
Author: @shamashel
Created: 1/30/2026
Status: Closed

Base: mainHead: fix-http2-decompression


📝 Commits (2)

  • 20c2912 fix(http): disable HTTP/2 to fix undici decompression issues
  • 0a6df3e fix(e2e): disable HTTP/2 in e2e tests to match production fix

📊 Changes

2 files changed (+2 additions, -2 deletions)

View changed files

📝 e2e/clawdhub.e2e.test.ts (+1 -1)
📝 packages/clawdhub/src/http.ts (+1 -1)

📄 Description

Fixes openclaw/openclaw#3637

Summary

When undici fetches compressed content over HTTP/2, it fails to decompress the response, causing JSON parse errors:

✖ Unexpected token '',"..."... is not valid JSON

This change disables HTTP/2 (allowH2: false) to force HTTP/1.1 which handles compression correctly.

Changes

  • packages/clawdhub/src/http.ts: Changed allowH2: trueallowH2: false

Testing

  • Verify clawhub CLI works with compressed responses
  • Check that skill search/install operations succeed

Context

The undici HTTP/2 implementation does not properly decompress response bodies when servers return compressed content over HTTP/2. This causes the CLI to receive binary data instead of valid JSON.

See: https://github.com/openclaw/openclaw/issues/3637


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/openclaw/clawhub/pull/74 **Author:** [@shamashel](https://github.com/shamashel) **Created:** 1/30/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-http2-decompression` --- ### 📝 Commits (2) - [`20c2912`](https://github.com/openclaw/clawhub/commit/20c291209ea2d14987560462bc0f9b669428ef48) fix(http): disable HTTP/2 to fix undici decompression issues - [`0a6df3e`](https://github.com/openclaw/clawhub/commit/0a6df3e5fe0f8f336566fa95159346ce44422607) fix(e2e): disable HTTP/2 in e2e tests to match production fix ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `e2e/clawdhub.e2e.test.ts` (+1 -1) 📝 `packages/clawdhub/src/http.ts` (+1 -1) </details> ### 📄 Description Fixes openclaw/openclaw#3637 ## Summary When undici fetches compressed content over HTTP/2, it fails to decompress the response, causing JSON parse errors: ``` ✖ Unexpected token '',"..."... is not valid JSON ``` This change disables HTTP/2 (`allowH2: false`) to force HTTP/1.1 which handles compression correctly. ## Changes - `packages/clawdhub/src/http.ts`: Changed `allowH2: true` → `allowH2: false` ## Testing - [x] Verify clawhub CLI works with compressed responses - [x] Check that skill search/install operations succeed ## Context The undici HTTP/2 implementation does not properly decompress response bodies when servers return compressed content over HTTP/2. This causes the CLI to receive binary data instead of valid JSON. See: https://github.com/openclaw/openclaw/issues/3637 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 17:16:29 -05:00
yindo closed this issue 2026-02-15 17:16:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: openclaw/clawhub#248