Intermediate Log Reading #stack-traces #debugging #exceptions #error-analysis

Reading Stack Traces

5 exercises — Python, Java, and Node.js stack traces. Identify the root exception, locate the application code frame, distinguish library internals from your bugs, and recognise recursion errors.

0 / 10 completed
1 / 10
A Python stack trace ends with:
Traceback (most recent call last):
File "app.py", line 47, in process_order
result = db.execute(query, params)
File "/usr/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1774, in execute
return self._exec_single_context(...)
File "/usr/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 1822, in _exec_single_context
self.dialect.do_execute(...)
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) SSL connection has been closed unexpectedly


Which line should an on-call engineer look at first to understand what went wrong in the application code?

Frequently Asked Questions

What will I practise in "Reading Stack Traces — Log Reading Exercises"?

Practice reading Python, Java, and Node.js stack traces. Identify root exceptions, trace call chains, find application code frames, and distinguish library internals from application bugs. 5 exercises.

How many exercises are in this module?

This module has 10 multiple-choice exercises, each with instant feedback and a full explanation of the correct answer.

Is this exercise free to use?

Yes. Every exercise on CoderSlingo, including this one, is free to use with no account, sign-up, or paywall.