204 No Content Error state
Tracking this issue reported by @kemmis
204 + body content makes postman throw "HTTP/2 Protocol Error:Stream closed with and error."
Here are additional details:
GET from Postman w/ HTTP version set to AUTO or HTTP/2:
- Error in postman console: Error: Stream closed with error code NGHTTP2_HTTP_1_1_REQUIRED
- No response data/headers shown at all
GET from Postman w/ HTTP version set to HTTP/1.x:
- Error in postman console: Error: Parse Error: Expected HTTP/, RTSP/ or ICE/
- No response data/header shown at all
CURL details of response after it downgrades to HTTP/1.1:
```
* Request completely sent off
< HTTP/1.1 204 No Content
< Cache-Control: no-cache,no-store
< Pragma: no-cache
< Content-Length: 253
< Content-Type: application/json; charset=utf-8
< Expires: -1
< ServerMetrics: {"BlockReads":0,"BlockWrites":0,"BlocksAllocated":0,"DBTime":0,"DatabaseCPUTime":3,"ECFNetworkTime":0,"ECFRequestCount":0,"ECFRequestTime":0,"GREF":152,"JournalEntries":0,"LockWait":0,"LocksFailed":0,"LocksGranted":0,"MCommands":2498,"MemoryDifference":0,"NetworkCacheMisses":0,"NetworkUpdates":0,"WorkflowEventBlockReads":0,"WorkflowEventDBTime":0,"WorkflowEventECFNetworkTime":0,"WorkflowEventECFRequestCount":0,"WorkflowEventGREF":152}
< Strict-Transport-Security: max-age=31536000; includeSubDomains
< SERVER: WebServer
< Date: Tue, 02 Jun 2026 14:01:49 GMT
<
* Excess found writing body: excess = 253, size = 0, maxdownload = 0, bytecount = 0
* shutting down connection #1
```
_Originally posted by @kemmis in https://github.com/postmanlabs/postman-app-support/issues/2418#issuecomment-4603600042_
1 条评论