Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/database.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
{
"name": "RangeError: Maximum call stack size exceeded",
"match": "Maximum call stack size exceeded",
"explanation": "Your code is stuck in an infinite loop.",
"why": "A recursive function is calling itself without stopping.",
"fixes": ["Check recursion exit conditions", "Check while loops"],
"explanation": "The call stack limit was reached due to excessive recursion or a very deep call chain.",
"why": "A recursive function is calling itself too many times without hitting a base case, or a chain of function calls builds up too deeply.",
"fixes": ["Check recursion exit conditions", "Verify recursive base cases are reachable", "Check call-chain depth and stack-building loops"],
"example": "function run() { if (done) return; run(); }"
},
{
Expand Down Expand Up @@ -221,7 +221,7 @@
"explanation": "The data you sent is too big for the server.",
"why": "Usually an image or file that exceeds the body-parser limit.",
"fixes": ["Increase limit: app.use(express.json({limit: '50mb'}))"],
"example": "app.use(express.limit('10mb'));"
"example": "app.use(express.json({ limit: '10mb' }));"
},
{
"name": "TypeError: Cannot set property of null",
Expand Down