← Quiz: Debugging with AI: all 10 questions
Quiz: Debugging with AI · Question 10 of 10
In the case study, why did the Flask app fail only on the server?
In the case study, why did the Flask app fail only on the server?
- A.A CORS setting was wrong
- B.The routes were misspelt
- C.systemd did not read the .env file, so DATABASE_URL was missing
- D.The browser cache was stale
Answer & explanation
Correct answer: systemd did not read the .env file, so DATABASE_URL was missing
Reading the server log revealed KeyError: 'DATABASE_URL'.
Can you get the rest right without peeking?
Take the timed Quiz: Debugging with AI quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →