{"record":{"id":"f05f248268971bd1","repo":"argoproj/argo-workflows","slug":"failed-to-get-sync-limit-w","errorCode":null,"errorMessage":"failed to get sync limit: %w","messagePattern":"failed to get sync limit: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/argo/commands/sync/get.go","lineNumber":71,"sourceCode":"\tctx, apiClient, err := client.NewAPIClient(ctx)\n\tif err != nil {\n\t\treturn err\n\t}\n\tserviceClient, err := apiClient.NewSyncServiceClient(ctx)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\treq := &syncpkg.GetSyncLimitRequest{\n\t\tCmName:    cliGetOpts.cmName,\n\t\tNamespace: client.Namespace(ctx),\n\t\tKey:       key,\n\t\tType:      syncpkg.SyncConfigType(syncpkg.SyncConfigType_value[cliGetOpts.syncType]),\n\t}\n\n\tresp, err := serviceClient.GetSyncLimit(ctx, req)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to get sync limit: %w\", err)\n\t}\n\n\tprintSyncLimit(resp.Key, resp.CmName, resp.Namespace, resp.Limit, resp.Type)\n\treturn nil\n}\n","sourceCodeStart":53,"sourceCodeEnd":77,"githubUrl":"https://github.com/argoproj/argo-workflows/blob/35bff19146f5a6ada77468c431f2624bd577e373/cmd/argo/commands/sync/get.go#L53-L77","documentation":"GetSyncLimitCommand wraps any error returned by the GetSyncLimit gRPC call. It fires when reading a sync limit fails — typically because the key does not exist in the configmap/database, the --type does not match where the limit is stored, or the caller lacks RBAC permission — with the server-side cause preserved via %w.","triggerScenarios":"Thrown at cmd/argo/commands/sync/get.go:71 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Confirm the key, type, and configmap name","List existing limits to see what is configured"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35bff19146f5a6ada77468c431f2624bd577e373","analyzedAt":"2026-09-03T19:34:35.908Z","contentChangedAt":"2026-09-03T19:34:35.908Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}