{"record":{"id":"f91adc916b481566","repo":"JanDeDobbeleer/oh-my-posh","slug":"unable-to-get-pulumi-about-output","errorCode":null,"errorMessage":"unable to get pulumi about output","messagePattern":"unable to get pulumi about output","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"src/segments/pulumi.go","lineNumber":167,"sourceCode":"\t_, err := h.Write([]byte(s))\n\tif err != nil {\n\t\tlog.Error(err)\n\t\treturn \"\"\n\t}\n\n\treturn hex.EncodeToString(h.Sum(nil))\n}\n\nfunc (p *Pulumi) getPulumiAbout() {\n\tif p.Stack == \"\" {\n\t\tlog.Error(fmt.Errorf(\"pulumi stack name is empty, use `fetch_stack` property to enable stack fetching\"))\n\t\treturn\n\t}\n\n\taboutOutput, err := p.env.RunCommand(\"pulumi\", \"about\", \"--json\")\n\n\tif err != nil {\n\t\tlog.Error(fmt.Errorf(\"unable to get pulumi about output\"))\n\t\treturn\n\t}\n\n\tvar about struct {\n\t\tBackend *Backend `json:\"backend\"`\n\t}\n\n\terr = json.Unmarshal([]byte(aboutOutput), &about)\n\tif err != nil {\n\t\tlog.Error(fmt.Errorf(\"pulumi about output decode error\"))\n\t\treturn\n\t}\n\n\tif about.Backend == nil {\n\t\tlog.Debug(\"pulumi about backend is not set\")\n\t\treturn\n\t}\n","sourceCodeStart":149,"sourceCodeEnd":185,"githubUrl":"https://github.com/JanDeDobbeleer/oh-my-posh/blob/0976794618c5ed95de0985dded50de1b4dc914cb/src/segments/pulumi.go#L149-L185","documentation":"After deciding to fetch backend info, the segment runs `pulumi about --json` through the environment's command runner. This error is thrown when that command exits with an error, so no about output is available to decode. It indicates the pulumi CLI invocation itself failed, not the JSON parsing of its output.","triggerScenarios":"`pulumi about` fails: pulumi CLI version too old to support `about` or `--json`, not logged in to a backend, no stack selected, network/auth errors reaching the Pulumi service, or pulumi hung and the command returned an error status.","commonSituations":"Old pulumi CLI (pre-3.x) without the `about` command, expired Pulumi Cloud access token, CI/containers without `pulumi login` state, or offline development.","solutions":["Run `pulumi about --json` manually in the project directory to see the underlying CLI error","Upgrade the pulumi CLI to a recent version that supports `about --json`","Ensure you are logged in (`pulumi login`) and a stack is selected (`pulumi stack select`)","If you don't need backend info, remove fetch_about from the segment properties"],"exampleFix":"$ pulumi about --json\nerror: no stack selected\n// after\n$ pulumi stack select dev\n$ pulumi about --json   # succeeds, prompt renders backend","handlingStrategy":"fallback","validationCode":"pulumi about --json >/dev/null 2>&1 || echo \"pulumi about unavailable — disable fetch_about\"","typeGuard":null,"tryCatchPattern":"try {\n  const out = execFileSync(\"pulumi\", [\"about\", \"--json\"]);\n} catch (e) {\n  // fall back to rendering without backend info\n}","preventionTips":["Keep the pulumi CLI updated to a version supporting `about --json`","Stay logged in (`pulumi login`) and keep a stack selected","Disable fetch_about in environments without pulumi credentials (CI, containers)"],"tags":["go","pulumi","cli","command-failed"],"backgroundTag":"command-execution-failed","analyzedSha":"0976794618c5ed95de0985dded50de1b4dc914cb","analyzedAt":"2026-08-31T23:41:19.708Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T05:18:18.240Z"}