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

Default deploy installs eoapi-cdk 10.3.0, whose STAC runtime fails to import (`No module named 'stac_fastapi.extensions.core.fields'`)

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

@hrodmn 已经在做这个了。

开始于 2026年7月1日。

  • #48 来自 @hrodmn —— 未关闭

评估

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

调研方向

从 pyproject.toml 中的 eoapi-cdk 约束和 uv.lock 中解析出的版本开始;运行 uv sync 以确认依赖解析结果。更新依赖项,使全新部署不再选择 10.3.0,然后运行 npx cdk deploy --all,并验证 STAC API 端点能够在没有 Lambda 导入错误的情况下响应。

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

描述

Deploying eoapi-template from a fresh clone produced a STAC API that returned 500 Internal Server Error on every request. The cause seemed to be dependency resolution: pyproject.toml specifies eoapi-cdk>=10.3.0,<12, and a fresh uv sync resolves to the lower bound, 10.3.0. The STAC API runtime bundled by eoapi-cdk 10.3.0 raises an ImportModuleError at Lambda handler import. Upgrading eoapi-cdk to 11.6.0 resolved it for me.

Environment:

  • Fresh clone of eoapi-template, deployed to AWS (us-west-2)
  • uv sync resolved eoapi-cdk==10.3.0 (confirmed in uv.lock)
  • Python 3.14.2, Node v24.13.0, deployed via npx cdk deploy --all

What happened:

Once deployed, I attempted to hit the STAC API endpoint:
Image

Looking in the CloudWatch logs I noticed:
Image

Forcing eoapi-cdk to the latest version resolved it. Upon redeploying, I was able to hit the endpoint:

Image
主要语言
Python
星标
5
派生
2
平均合并
18 小时 23 分钟
30 天内合并 PR
1

环境准备

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

从这里开始

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

developmentseed/eoapi-template 的其他 Issue

查看 developmentseed/eoapi-template 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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