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

Can't run all the different endpoints successfully

オープン
#2 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、ドキュメント化されている curl コマンドと Postman を使って update、delete、show todo リクエストを再現し、それらのヘッダーとパスパラメーターを比較します。CRUD エンドポイントの動作と DynamoDB とのやり取りを確認し、5xx レスポンスの原因を特定します。原因が文書化され、影響を受けるエンドポイントまたは curl の例が正常に動作すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
api, backend, databases
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。