First 5 minutes
In 5 minutes, you will break a function on purpose and use the AI to understand the error, with no AWS account. You need Python and an AI assistant.
-
Download the mission.
Janela do terminal npx -y moretes-builder-workshops missao 3 my-mission --lang encd my-missionNo Node.js? Download the files from the mission folder.
-
Before you run it, place a bet: what happens if the function receives an empty event?
-
Run it.
Janela do terminal python3 rodar_local.py '{}'KeyError: 'nome' -
Ask the AI for help, without asking for the ready-made answer.
You are my tutor. I am learning to read errors and I do NOT want the ready-made fix.This is my code: [paste lambda_function.py]This is the error: KeyError: 'nome'Tell me which line to look at and ask me a question so I can find the cause. -
Answer its question. Done: you just investigated an error instead of only copying the solution.
Next step
Section titled “Next step”On AWS, this same error comes with a surprise: the status comes back 200. See it in the full mission, or choose another mission.
Independent community project by Fernando Azevedo, AWS Community Builder. Not official AWS material, and not endorsed by AWS. AWS and related names are trademarks of Amazon.com, Inc. or its affiliates. MIT license.