{"record":{"id":"c43ced73f2f43882","repo":"GopeedLab/gopeed","slug":"start-gopeed-failed","errorCode":null,"errorMessage":"start gopeed failed","messagePattern":"start gopeed failed","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/host/main.go","lineNumber":60,"sourceCode":"\tif running {\n\t\treturn nil\n\t}\n\n\turi := \"gopeed:\"\n\tif hidden {\n\t\turi = uri + \"?hidden=true\"\n\t}\n\tif err := browser.OpenURL(uri); err != nil {\n\t\treturn err\n\t}\n\n\tfor i := 0; i < 10; i++ {\n\t\tif ok, _ := check(); ok {\n\t\t\treturn nil\n\t\t}\n\t\ttime.Sleep(1 * time.Second)\n\t}\n\treturn fmt.Errorf(\"start gopeed failed\")\n}\n\n// postToFlutter sends a POST request to Flutter RPC server\nfunc postToFlutter(path string, body []byte, headers map[string]string, timeout time.Duration) (*http.Response, error) {\n\tclient := &http.Client{\n\t\tTransport: &http.Transport{\n\t\t\tDialContext: func(ctx context.Context, network, addr string) (net.Conn, error) {\n\t\t\t\treturn Dial()\n\t\t\t},\n\t\t},\n\t\tTimeout: timeout,\n\t}\n\treq, err := http.NewRequest(\"POST\", \"http://127.0.0.1\"+path, bytes.NewBuffer(body))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\tfor k, v := range headers {","sourceCodeStart":42,"sourceCodeEnd":78,"githubUrl":"https://github.com/GopeedLab/gopeed/blob/7b7327ffb30816273a74b142cccc0bc10c5a4c67/cmd/host/main.go#L42-L78","documentation":"Error \"start gopeed failed\" thrown in GopeedLab/gopeed.","triggerScenarios":"Thrown at cmd/host/main.go:60 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b7327ffb30816273a74b142cccc0bc10c5a4c67","analyzedAt":"2026-08-16T02:51:03.250Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}