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

weather_service agent binds Uvicorn on :8001 despite PORT=8000 / containerPort 8000

未关闭 适合新手
#828 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 6 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
python
领域
backend

调研方向

从 a2a/weather_service 入口点开始,跟踪 agent 如何选择其 Uvicorn 绑定端口。使用 PORT=8000 运行它,并检查启动日志。当 Uvicorn 报告端口 8000,且该端口与 Sandbox 的 containerPort 和 service target port 匹配时,即完成。

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

描述

Summary

The a2a/weather_service agent, when deployed via the Rossoctl UI (Sandbox workload), logs:

INFO:     Uvicorn running on http://0.0.0.0:8001 (Press CTRL+C to quit)

...even though the Sandbox pod spec sets PORT=8000 (env) and containerPort: 8000, and the service maps to target port 8000.

Impact

Low — it works in practice (readiness/health probes pass through the AuthBridge sidecar, and the app is reachable). But it's a mismatch: the app appears to ignore the PORT env var (or offset it by one), which is confusing when debugging and could bite a setup that relies on the app honoring PORT.

Expected

The agent should bind the port given by the PORT env var (8000), matching containerPort and the service target port.

Environment

  • Kind on macOS, deployed via Rossoctl UI, image weather-service:v0.0.1 built from a2a/weather_service @ main.
  • Observed while running the AuthBridge weather-agent demo.

Assisted-By: Claude (Anthropic AI) [email protected]

主要语言
Python
星标
11
派生
42
平均合并
4 天 11 小时
30 天内合并 PR
40

环境准备

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

从这里开始

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

rossoctl/examples 的其他 Issue

查看 rossoctl/examples 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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