Kong / Kong/insomnia

Error: Stream error in the HTTP/2 framing layer in some requests not all requests

Open
#7,399 0 comments 0 reactions 0 assignees View on GitHub
B-bug S-unverified
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

### Expected Behavior

Insomnia can solve those request and response without error.

### Actual Behavior

1. Click on the "Preferences" option, In the opened panel, select [General -> Preferred HTTP version].Click on HTTP
2. Click the send button to see if Insomnia successfully initiates the HTTP/2 request.
In some request not all, I will get `Error: Stream error in the HTTP/2 framing layer` error.
In server api log, all response HTTP version is HTTP/1.1 .
**success resolved response**:
```
[13/May/2024:02:51:28 -0500] "GET /v3/users/0688b01e6439ca32d698d20789d52169126fb41fb1a4ddafcebb97d854e836c9/projects HTTP/1.1" 200 487 "-" "insomnia/9.1.1"
```
**fail resolved response:**
```
INFO nova.osapi_compute.wsgi.server [None req-137d23fd-ad0c-47c8-b577-8a11d7b807b9 0688b01e6439ca32d698d20789d52169126fb41fb1a4ddafcebb97d854e836c9 387b498fade34fb1be7472e08af11bf1 - - default default] 172.26.0.1,127.0.0.1 "GET /v2.1/387b498fade34fb1be7472e08af11bf1/os-hypervisors/detail?include_remote_restart_enabled=true HTTP/1.1" status: 200 len: 417 time: 0.0108478
```

### Reproduction Steps

_No response_

### Is there an existing issue for this?

- [X] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.

### Additional Information

_No response_

### Insomnia Version

insomnia/9.1.1

### What operating system are you using?

Ubuntu

### Operating System Version

Ububtu22.4

### Installation method

download from insomnia offical website

### Last Known Working Insomnia version

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure from Preferences → General → Preferred HTTP version with the two request patterns described, comparing successful and failing server logs. Trace the HTTP/2 request path and capture the conditions that distinguish the requests; done means the affected requests complete without the framing-layer error and existing HTTP/1.1 behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.