fix: Cloud 401/404 and empty lists should be readable
@margaretjgu is already working on this.
Since Sep 22, 2026.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
Research direction
Trace the cloud_api_error handling and the projects * list and list-deployments command entry points first. Use the acceptance cases to check parsed error messages, authentication and 404 hints, and empty-list behavior; done means JSON output remains [] while human mode writes the matching create hint to stderr.
Written by the indexing model from the issue text.
Description
cloud_api_error dumps the raw body (Cloud API error 404: {"errors":[…]}). Empty list returns [] with no hint.
- Parse
errors[].message(andcodeif present) intoerror.message - 401/403: name Cloud API key vs project ES key confusion, plus the console API keys URL
- 404 on a project/deployment: name
listfor that product line - Empty list on
projects * list/list-deployments: stderr one-liner with the matchingcreatecommand (stdout stays[]under--json)
Do not replace #636. This is Cloud body shape and empty-account UX.
Acceptance: mock 404 with {"errors":[{"message":"project not found"}]} prints that message, not the raw JSON blob. Empty list with --json is still []. Human mode prints the create hint on stderr.
- Dominant language
- TypeScript
- Stars
- 43
- Forks
- 24
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 61
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from elastic/cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
cloud enhancement
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
mksglu/context-mode#1200 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
anthropics/claude-code#96687 ·
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
AOSSIE-Org/DebateAI#582 · 2 comments ·