localstack-samples / localstack-samples/serverless-python-rest-api-with-dynamodb

Can't run all the different endpoints successfully

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

还没有人认领这个 Issue。

主要语言
Python
星标
21
派生
9
PR 合并指标
30 天内没有已合并 PR

描述

I was able to:

  • list all the todo items
  • create a todo item

However, I got 5xx errors when doing at least:

  • update a todo item
  • delete a todo item
  • show a todo item (don't remember if I did or not)

I think the documentation might be old, as the curl commands don't work out-of-the-box after replacing the placeholder id with the actual id. So I used Postman instead, which included the application/json in the header and it worked for listing todos and creating todos.

It seems like the resources are provisioned correctly since todo items are stored and retrieved from dynamodb. However, the other ones wouldn't.

What could be the reason?

贡献指南

这个仓库没有索引到贡献指南

从这里开始

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

调研方向

首先,使用文档中记录的 curl 命令和 Postman 重现 update、delete 和 show todo 请求,并比较它们的 headers 和路径参数。检查 CRUD 端点的行为以及与 DynamoDB 的交互,以确定 5xx 响应的来源。当原因已记录,并且受影响的端点或 curl 示例能够成功运行时,即视为完成。

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

评估

技术栈
python
领域
api, backend, databases
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

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