{"record":{"id":"ce662a0beb07eb01","repo":"router-for-me/CLIProxyAPI","slug":"http-stream-s-is-not-open","errorCode":null,"errorMessage":"http stream %s is not open","messagePattern":"http stream (.+?) is not open","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/pluginhost/http_stream_bridge.go","lineNumber":50,"sourceCode":"\t\t}\n\t\treturn \"\"\n\t}\n\tid := strconv.FormatUint(b.next.Add(1), 10)\n\tb.mu.Lock()\n\tb.streams[id] = hostHTTPStreamEntry{chunks: chunks, cancel: cancel}\n\tb.mu.Unlock()\n\treturn id\n}\n\nfunc (b *hostHTTPStreamBridge) read(ctx context.Context, id string) (pluginapi.HTTPStreamChunk, bool, error) {\n\tif b == nil || id == \"\" {\n\t\treturn pluginapi.HTTPStreamChunk{}, true, fmt.Errorf(\"http stream id is required\")\n\t}\n\tb.mu.Lock()\n\tentry := b.streams[id]\n\tb.mu.Unlock()\n\tif entry.chunks == nil {\n\t\treturn pluginapi.HTTPStreamChunk{}, true, fmt.Errorf(\"http stream %s is not open\", id)\n\t}\n\tif ctx == nil {\n\t\tctx = context.Background()\n\t}\n\tselect {\n\tcase <-ctx.Done():\n\t\tb.close(id)\n\t\treturn pluginapi.HTTPStreamChunk{}, true, ctx.Err()\n\tcase chunk, ok := <-entry.chunks:\n\t\tif !ok {\n\t\t\tb.close(id)\n\t\t\treturn pluginapi.HTTPStreamChunk{}, true, nil\n\t\t}\n\t\tif chunk.Err != nil {\n\t\t\tb.close(id)\n\t\t\treturn chunk, true, nil\n\t\t}\n\t\treturn chunk, false, nil","sourceCodeStart":32,"sourceCodeEnd":68,"githubUrl":"https://github.com/router-for-me/CLIProxyAPI/blob/78f0c4079e3e6273d65d03b5549cffc898703264/internal/pluginhost/http_stream_bridge.go#L32-L68","documentation":"Error \"http stream %s is not open\" thrown in router-for-me/CLIProxyAPI.","triggerScenarios":"Thrown at internal/pluginhost/http_stream_bridge.go:50 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Open the HTTP stream before reading or closing it.","Check for premature close or an incorrect stream id."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"78f0c4079e3e6273d65d03b5549cffc898703264","analyzedAt":"2026-08-15T12:26:37.444Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}