localstack-samples / localstack-samples/serverless-python-rest-api-with-dynamodb
Can't run all the different endpoints successfully
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 21
- Forks
- 9
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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?
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die update-, delete- und show-todo-Anfragen anhand der dokumentierten curl-Befehle und mit Postman zu reproduzieren, und vergleiche dabei ihre Header und Pfadparameter. Überprüfe das Verhalten der CRUD-Endpunkte und die Interaktionen mit DynamoDB, um die Ursache der 5xx-Antworten zu ermitteln. Die Aufgabe ist abgeschlossen, wenn die Ursache dokumentiert ist und die betroffenen Endpunkte oder curl-Beispiele erfolgreich funktionieren.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- api, backend, databases
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100