Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

fix: Cloud 401/404 and empty lists should be readable

Open
#652 0 comments 0 reactions 1 assignee View on GitHub

@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
Domain
api, cli, cloud

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 enhancement

cloud_api_error dumps the raw body (Cloud API error 404: {"errors":[…]}). Empty list returns [] with no hint.

  • Parse errors[].message (and code if present) into error.message
  • 401/403: name Cloud API key vs project ES key confusion, plus the console API keys URL
  • 404 on a project/deployment: name list for that product line
  • Empty list on projects * list / list-deployments: stderr one-liner with the matching create command (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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from elastic/cli

All issues in elastic/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.