Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

已关闭
#652 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@margaretjgu 已经在做这个了。

开始于 2026年9月22日。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
typescript
领域
api, cli, cloud

调研方向

首先跟踪 cloud_api_error 的处理,以及 projects * list 和 list-deployments 命令的入口点。使用验收用例检查解析后的错误消息、身份验证和 404 提示,以及空列表行为;完成的标准是 JSON 输出仍为 [],同时 human 模式将匹配的创建提示写入 stderr。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
47
派生
27
平均合并
2 天 6 小时
30 天内合并 PR
52

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

elastic/cli 的其他 Issue

查看 elastic/cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。