{"record":{"id":"e6bdd6afd4b77fe4","repo":"router-for-me/CLIProxyAPI","slug":"execute-host-http-request-w","errorCode":null,"errorMessage":"execute host http request: %w","messagePattern":"execute host http request: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/pluginhost/http_bridge.go","lineNumber":133,"sourceCode":"\tcfg := c.host.currentRuntimeConfig()\n\tmethod := req.Method\n\tif method == \"\" {\n\t\tmethod = http.MethodGet\n\t}\n\thttpReq, errNewRequest := http.NewRequestWithContext(ctx, method, req.URL, bytes.NewReader(bytes.Clone(req.Body)))\n\tif errNewRequest != nil {\n\t\treturn nil, cfg, fmt.Errorf(\"create host http request: %w\", errNewRequest)\n\t}\n\thttpReq.Header = cloneHeader(req.Headers)\n\tc.recordHTTPRequest(ctx, cfg, httpReq, req.Body)\n\tclient := helps.NewProxyAwareHTTPClient(ctx, cfg, c.auth, 0)\n\tif client == nil {\n\t\tclient = &http.Client{}\n\t}\n\tresp, errDo := client.Do(httpReq)\n\tif errDo != nil {\n\t\thelps.RecordAPIResponseError(ctx, cfg, errDo)\n\t\treturn nil, cfg, fmt.Errorf(\"execute host http request: %w\", errDo)\n\t}\n\treturn resp, cfg, nil\n}\n\nfunc (c *hostHTTPClient) recordHTTPRequest(ctx context.Context, cfg *config.Config, req *http.Request, body []byte) {\n\tif req == nil {\n\t\treturn\n\t}\n\tprovider := c.provider\n\tvar authID, authLabel, authType, authValue string\n\tif c.auth != nil {\n\t\tauthID = c.auth.ID\n\t\tauthLabel = c.auth.Label\n\t\tauthType, authValue = c.auth.AccountInfo()\n\t\tif provider == \"\" {\n\t\t\tprovider = c.auth.Provider\n\t\t}\n\t}","sourceCodeStart":115,"sourceCodeEnd":151,"githubUrl":"https://github.com/router-for-me/CLIProxyAPI/blob/78f0c4079e3e6273d65d03b5549cffc898703264/internal/pluginhost/http_bridge.go#L115-L151","documentation":"Error \"execute host http request: %w\" thrown in router-for-me/CLIProxyAPI.","triggerScenarios":"Thrown at internal/pluginhost/http_bridge.go:133 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check network connectivity from the host to the target URL and retry.","Inspect the wrapped error for DNS, TLS, or timeout failures."],"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"}