{"record":{"id":"d5a352e876b1a950","repo":"dagger/dagger","slug":"org-q-not-found","errorCode":null,"errorMessage":"org %q not found","messagePattern":"org %q not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/cloud/checks.go","lineNumber":235,"sourceCode":"\tvars := map[string]any{\n\t\t\"org\":   org,\n\t\t\"repos\": expandRepoForms(repos),\n\t}\n\tif first > 0 {\n\t\tvars[\"first\"] = first\n\t}\n\tvar data struct {\n\t\tOrg *struct {\n\t\t\tChecks struct {\n\t\t\t\tNodes []CheckCommit `json:\"nodes\"`\n\t\t\t} `json:\"checks\"`\n\t\t} `json:\"org\"`\n\t}\n\tif err := c.doGraphQL(ctx, \"GetOrgChecks\", getOrgChecksOperation, vars, &data); err != nil {\n\t\treturn nil, err\n\t}\n\tif data.Org == nil {\n\t\treturn nil, fmt.Errorf(\"org %q not found\", org)\n\t}\n\treturn data.Org.Checks.Nodes, nil\n}\n\nfunc (c *Client) UserChecks(\n\tctx context.Context,\n\trepos []string,\n\tfirst int,\n) ([]CheckCommit, error) {\n\tvars := map[string]any{\n\t\t\"repos\": expandRepoForms(repos),\n\t}\n\tif first > 0 {\n\t\tvars[\"first\"] = first\n\t}\n\tvar data struct {\n\t\tUser *struct {\n\t\t\tChecks struct {","sourceCodeStart":217,"sourceCodeEnd":253,"githubUrl":"https://github.com/dagger/dagger/blob/82ba2681dbe30d3547a1dc50ea495900ab5b6047/internal/cloud/checks.go#L217-L253","documentation":"Returned by Client.OrgChecks in internal/cloud/checks.go when the GetOrgChecks GraphQL response comes back with a nil org — Dagger Cloud has no org matching the requested name for the authenticated user. The error embeds the requested org name for diagnosis.","triggerScenarios":"Calling OrgChecks with an org slug that doesn't exist, isn't accessible to the current credentials, or where the GraphQL query returned null for org (e.g. bad org name in .telemetry/cloud config or dagger cloud flags).","commonSituations":"Typo in the org slug; org renamed on Dagger Cloud; API token belongs to a different org or lacks access; running 'dagger cloud' commands with a stale org configured.","solutions":["Verify the org slug on Dagger Cloud (Settings > Organizations) and fix the spelling/case","Confirm your DAGGER_CLOUD_TOKEN / logged-in user is a member of that org","Re-authenticate with 'dagger login' if the token is stale or revoked","Update any configured org name (config/flags) after an org rename"],"exampleFix":"// before\nnodes, err := client.OrgChecks(ctx, \"my-orgnization\")\n// after\nconst org = \"my-organization\" // verify exact slug on Dagger Cloud\nnodes, err := client.OrgChecks(ctx, org)\nif err != nil && strings.Contains(err.Error(), \"not found\") {\n    return fmt.Errorf(\"check org %q exists and your token has access: %w\", org, err)\n}","handlingStrategy":"validation","validationCode":"org := \"my-organization\"\nif org == \"\" || !regexp.MustCompile(`^[a-z0-9][a-z0-9-]*$`).MatchString(org) {\n    return fmt.Errorf(\"invalid org slug %q\", org)\n}\n// ensure credentials exist first\nif os.Getenv(\"DAGGER_CLOUD_TOKEN\") == \"\" { return fmt.Errorf(\"not logged in\") }","typeGuard":null,"tryCatchPattern":"nodes, err := client.OrgChecks(ctx, org)\nif err != nil {\n    if strings.Contains(err.Error(), \"not found\") {\n        return fmt.Errorf(\"org %q not found: verify slug and token access\", org)\n    }\n    return err\n}","preventionTips":["Verify org slugs on Dagger Cloud before configuring them","Re-authenticate after org renames or token rotation","Confirm the token belongs to the target org","Handle the not-found case explicitly in CLI commands"],"tags":["graphql","cloud-api","configuration"],"backgroundTag":"resource-not-found","analyzedSha":"82ba2681dbe30d3547a1dc50ea495900ab5b6047","analyzedAt":"2026-09-05T07:21:37.930Z","contentChangedAt":"2026-09-05T07:21:37.930Z","schemaVersion":2},"datasetVersion":"2026-09-12T12:17:11.808Z"}