Here's a template for error prompts:
"Error in Python , FastAPI , running in Docker on Alpine Linux.
Stack trace: [paste full trace]
Relevant code (lines -): [paste code]
Expected: User object returned. Actual: InvalidId exception.
I've already tried: [what you attempted]"
This gives the AI everything it needs to diagnose the problem accurately.