{"record":{"id":"82fef83da99f05c3","repo":"ipfs/kubo","slug":"error-while-listing-remote-pins-v-82fef8","errorCode":null,"errorMessage":"error while listing remote pins: %v","messagePattern":"error while listing remote pins: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/commands/pin/remotepin.go","lineNumber":438,"sourceCode":"\n\t\trmIDs := []string{}\n\t\tif len(req.Arguments) != 0 {\n\t\t\treturn fmt.Errorf(\"unexpected argument %q\", req.Arguments[0])\n\t\t}\n\n\t\tpsCh := make(chan pinclient.PinStatusGetter)\n\t\terrCh := make(chan error, 1)\n\t\tctx, cancel := context.WithCancel(req.Context)\n\t\tdefer cancel()\n\n\t\tgo func() {\n\t\t\terrCh <- lsRemote(ctx, req, c, psCh)\n\t\t}()\n\t\tfor ps := range psCh {\n\t\t\trmIDs = append(rmIDs, ps.GetRequestId())\n\t\t}\n\t\tif err = <-errCh; err != nil {\n\t\t\treturn fmt.Errorf(\"error while listing remote pins: %v\", err)\n\t\t}\n\n\t\tif len(rmIDs) > 1 && !req.Options[pinForceOptionName].(bool) {\n\t\t\treturn fmt.Errorf(\"multiple remote pins are matching this query, add --force to confirm the bulk removal\")\n\t\t}\n\n\t\tfor _, rmID := range rmIDs {\n\t\t\tif err = c.DeleteByID(ctx, rmID); err != nil {\n\t\t\t\treturn fmt.Errorf(\"removing pin identified by requestid=%q failed: %v\", rmID, err)\n\t\t\t}\n\t\t}\n\t\treturn nil\n\t},\n}\n\n// remote service commands\n\nvar addRemotePinServiceCmd = &cmds.Command{","sourceCodeStart":420,"sourceCodeEnd":456,"githubUrl":"https://github.com/ipfs/kubo/blob/329838acdfafae224582930457efe80aa217afc0/core/commands/pin/remotepin.go#L420-L456","documentation":"Wrapped failure from lsRemote while 'ipfs pin remote rm' was listing the pins that match its filter query; the underlying error (network, auth, or service error) is included. Nothing has been removed yet.","triggerScenarios":"Thrown at core/commands/pin/remotepin.go:438 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry: transient network or service-side errors are the usual cause","Verify the service endpoint and credentials with 'ipfs pin remote ls --service <name>'","Check the service is up and reachable from this node"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"329838acdfafae224582930457efe80aa217afc0","analyzedAt":"2026-09-03T18:30:52.135Z","contentChangedAt":"2026-09-03T18:30:52.135Z","schemaVersion":2},"datasetVersion":"2026-09-11T00:17:11.886Z"}