Errors & Debugging
Every one of these started as an error message someone pasted into a search box at 1am. Each article explains what the message actually means, why your code produced it, and the fix — plus how to avoid the same class of bug next time.
JavaScript and Node errors
- JavaScript Error Handling: try, catch and Async Traps A try/catch around code that returns a promise catches nothing. The catch block has already finished by the time the failure arrives, and the error escapes silently. Tutorial · 12 min read · August 6, 2026
- Python TypeError: Five Patterns and Their Real Causes Most TypeErrors are not about types at all. They are about a variable holding something you never intended to put there, one or two lines earlier. Tutorial · 11 min read · August 6, 2026
- EADDRINUSE: Port Already in Use and How to Fix It The process holding port 3000 is almost always your own server from ten minutes ago. Killing it blindly is the wrong habit; finding it takes one command. Tutorial · 11 min read · August 6, 2026
- SyntaxError: Unexpected Token and How to Locate It The line number in a SyntaxError is almost never the line with the mistake. And when the unexpected token is a less-than sign, your API returned an HTML error page. Tutorial · 11 min read · August 6, 2026
- Module Not Found: Fixing Cannot Resolve Errors The import works on your Windows laptop and fails on the Linux deploy box. That is not a mystery; it is your filesystem quietly ignoring capital letters. Tutorial · 11 min read · August 6, 2026
- Cannot GET /: Fixing Express Route Errors Cannot GET / is not an error at all. It is proof your server started perfectly and simply has no handler for that path, which means the fix is never in listen(). Tutorial · 11 min read · August 6, 2026
- Unhandled Promise Rejection in Node: Causes and Fixes One missing await turns a try/catch into decoration. The block completes, the promise rejects a moment later, and modern Node responds by killing your server. Tutorial · 11 min read · August 6, 2026
- Why Your JavaScript Says NaN (and How to Fix It) NaN is contagious — one appears and every calculation downstream becomes NaN. Finding the first one is the entire debugging task. Tutorial · 8 min read · August 6, 2026
- Maximum Call Stack Size Exceeded: Causes and Fixes A stack overflow in JavaScript. Usually a missing base case — but the React version and the accidental-recursion version are sneakier. Tutorial · 9 min read · August 6, 2026
- How to Debug a 500 Internal Server Error A 500 tells you nothing except that the server failed. The logs tell you everything — and most people never look at them. Tutorial · 10 min read · August 6, 2026
- TypeError: Cannot Read Property of Undefined — How to Fix It The most common error in JavaScript, and the message points at the symptom rather than the cause. Here is how to find where the undefined actually came from. Tutorial · 9 min read · August 6, 2026
- npm Errors Explained: ERESOLVE, EACCES, ENOENT and More npm errors look alarming and are mostly four recurring problems. Knowing which one you have turns a lost afternoon into a two-minute fix. Tutorial · 10 min read · August 6, 2026
- What Is CORS and How to Fix the Error The request worked in Postman and fails in the browser. Nothing is broken — you are meeting a rule that only browsers enforce. Tutorial · 10 min read · August 5, 2026
Python errors
- Java Exceptions: Why catch (Exception e) Hides Bugs A broad catch block does not just catch the API failure you expected. It catches your own NullPointerException and reports it as someone else's outage. Tutorial · 12 min read · August 6, 2026
- Python Logging: Why print() Is Not Enough logging.info() prints nothing on a fresh interpreter and never tells you why. The root logger defaults to WARNING, so your first three log lines vanish and you conclude logging is broken. Tutorial · 11 min read · August 6, 2026
- Python KeyError, IndexError and AttributeError Explained Three errors, one root cause: you asked for something that is not there. The harder question is whether the missing thing is the bug, or only the symptom of one. Tutorial · 11 min read · August 6, 2026
- Python IndentationError: Why It Happens and How to Fix It Python uses whitespace as syntax, so indentation is not style — it is structure. Most of these errors come from one invisible character. Tutorial · 8 min read · August 6, 2026
- Python ModuleNotFoundError: No Module Named — How to Fix You installed the package. Python still cannot find it. Almost always, pip and python are pointing at two different interpreters. Tutorial · 9 min read · August 6, 2026
- Python Try Except: Handling Errors the Right Way A beginner-friendly guide to handling errors in Python using try, except, else and finally, plus catching specific exceptions and raising your own. Tutorial · 9 min read · July 22, 2026
Tools and environment
- Git: Refusing to Merge Unrelated Histories, Explained The flag everyone pastes from Stack Overflow is not a fix. It is a permission slip, and often you should be refusing along with Git. Tutorial · 10 min read · August 6, 2026
- SSH Permission Denied (publickey): Fixing Git Auth The server did not reject your password. It never asked for one. Understanding that single sentence is most of the fix. Tutorial · 12 min read · August 6, 2026
- How to Resolve a Git Merge Conflict Without Panic A merge conflict is not an error. It is Git saying two people changed the same lines and it will not guess which one you meant. Tutorial · 10 min read · August 6, 2026
- Chrome DevTools Guide for Beginners Learn the Chrome DevTools panels beginners actually use — Elements, Console, Network, and device mode — with two hands-on debugging tasks. Tips & Tricks · 8 min read · July 22, 2026
- How to Undo a Commit in Git (Safely) A beginner-friendly guide to undoing commits in Git with reset, revert, and amend, plus how to stay safe on branches you have already pushed. Tips & Tricks · 9 min read · July 22, 2026
More on Errors & Debugging
- SQL Injection Explained: The Fix Is Not Escaping Quotes Two dashes typed into a login box can delete the password check from your own query. The fix is not smarter escaping, and most beginners reach for escaping first. Tutorial · 12 min read · August 6, 2026
- DNS Explained: Records, TTL and the Propagation Myth DNS propagation is not a thing. Nothing propagates. Old answers simply expire, on a clock you had to set before you made the change. Tutorial · 11 min read · August 6, 2026
- Java Threads: The Race Conditions You Cannot See count++ is three machine operations, not one. That single fact explains lost updates, why volatile does not fix them, and why the bug never reproduces on your laptop. Tutorial · 13 min read · August 6, 2026
- CSS z-index: Why 9999 Sometimes Does Nothing Your dropdown has z-index 9999 and still sits behind the next card. The number is not the problem. An ancestor with a transform quietly locked it into its own layer. Tutorial · 10 min read · August 6, 2026
- React Error Boundaries: What They Actually Catch One undefined property in one component and the entire page goes white. Error boundaries stop that, but they miss more kinds of error than they catch. Tutorial · 10 min read · August 6, 2026
- Fixing ArrayIndexOutOfBoundsException in Java Index 5 out of bounds for length 5 is not a mysterious message. It is Java telling you the exact number it received and the exact number it allowed, which is almost the whole fix. Tutorial · 11 min read · August 6, 2026
- Segmentation Fault in C++: Causes and How to Debug It The program crashes with three words and no line number. These are the six causes, and the tools that point straight at the offending line. Tutorial · 10 min read · August 6, 2026
- Java NullPointerException: Causes and How to Prevent It Called a billion-dollar mistake by the man who invented null. Reading the newer error messages properly turns most of these into thirty-second fixes. Tutorial · 10 min read · August 6, 2026
- CSS Specificity Explained: Why Your Style Is Not Applying Your rule is correct, it loads, and the browser ignores it. Specificity is almost always the reason, and it is arithmetic rather than mystery. Tutorial · 9 min read · August 5, 2026
- Debugging for Beginners: How to Find and Fix Bugs Faster A calm, repeatable way to find and fix bugs faster: reproduce it, read the error, isolate the cause, use logs and breakpoints, and question your assumptions. Tips & Tricks · 8 min read · July 22, 2026
- How to Google Programming Errors Effectively Being stuck on an error is normal. The skill is searching smart: copy the right part, cut the noise, use quotes and site: filters, and read threads with care. Tips & Tricks · 8 min read · July 22, 2026
