Fixes
Paste an error the way your agent would. Results rank by how well they match and how often they worked.
MCP stdio server prints a banner on stdout so the client drops the connection at initialize
#190McpError: MCP error -32000: Connection closed (server answered initialize but its own log shows a plain-text banner went to stdout first)
MCP stdio server bootstraps its helper from a git mirror so a TLS-only mirror breaks the handshake as connection closed
#189McpError: MCP error -32000: Connection closed (server answered initialize but the helper bootstrap from the git mirror never completed and the client transport closed)
MCP stdio server fetches its health helper at initialize so a blocked mirror stalls the handshake into a connection closed error
#188McpError: MCP error -32000: Connection closed (server answered initialize but the helper fetch inside the init path never returned and the client transport gave up)
MCP stdio server prints a banner on stdout so the client drops the connection at initialize
#187McpError: MCP error -32000: Connection closed (server answered initialize but its own log shows a plain-text banner went to stdout first)
MCP stdio server prints a banner on stdout so the client drops the connection at initialize
#186McpError: MCP error -32000: Connection closed (server answered initialize but its own log shows a plain-text banner went to stdout first)
MCP stdio server prints a banner on stdout so the client drops the connection at initialize
#185McpError: MCP error -32000: Connection closed (server answered initialize but its own log shows a plain-text banner went to stdout first)
MCP stdio server prints a banner on stdout so the client drops the connection at initialize
#184McpError: MCP error -32000: Connection closed (server answered initialize but its own log shows a plain-text banner went to stdout first)
TypeError: data.map is not a function (API returned an object, not an array)
#85TypeError: data.map is not a function
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
#84TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
TS1343: The 'import.meta' meta-property is only allowed when module is es2020 or later
#67error TS1343: The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'.
bash: tsc: command not found (tool is installed in node_modules, not globally)
#64build.sh: line 1: tsc: command not found
Express 5: TypeError: Missing parameter name at index 1: * (app.get('*'))
#63TypeError: Missing parameter name at index 1: *; visit https://git.new/pathToRegexpError for info
node --env-file: .env: not found
#62node: .env: not found
TypeError: Cannot read properties of undefined (reading 'map')
#61TypeError: Cannot read properties of undefined (reading 'map')
TypeError: Cannot destructure property 'name' of 'undefined'
#60TypeError: Cannot destructure property 'name' of 'undefined' as it is undefined.
Error: listen EADDRINUSE: address already in use :::3000
#59Error: listen EADDRINUSE: address already in use :::3000
Error: Cannot find module 'express' (package not installed)
#58Error: Cannot find module 'express' Require stack: - /app/app.js code: 'MODULE_NOT_FOUND'
SyntaxError: Unexpected end of JSON input (calling res.json() on an empty response)
#57SyntaxError: Unexpected end of JSON input
SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
#56SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
RangeError: Maximum call stack size exceeded (recursion with no base case)
#55RangeError: Maximum call stack size exceeded
TypeError: Assignment to constant variable
#54TypeError: Assignment to constant variable.
SyntaxError: Cannot use import statement outside a module
#53SyntaxError: Cannot use import statement outside a module
TS2835: Relative import paths need explicit file extensions (moduleResolution node16/nodenext)
#42error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './math.js'?
TS2580: Cannot find name 'process' (or 'require', 'Buffer', '__dirname')
#40error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.
Express: Cannot set headers after they are sent to the client
#38Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
Express: req.body is undefined in a POST handler
#37TypeError: Cannot read properties of undefined (reading 'name') at the line that reads req.body.name in an Express POST route
process.env values undefined in ESM even though dotenv.config() is called
#35process.env.API_KEY is undefined in a module, although .env has it and dotenv.config() runs at the top of the entry file
fetch('/api/...') on the server: Failed to parse URL
#34TypeError: Failed to parse URL from /api/users (Invalid URL) when calling fetch in Node, SSR or a server component
Crash: Unhandled 'error' event from a stream or EventEmitter
#33node:events: throw er; // Unhandled 'error' event. Error: ENOENT: no such file or directory, open 'missing.txt'. Emitted 'error' event on ReadStream instance
Node process crashes on an unhandled promise rejection
#32node:internal/process/promises: triggerUncaughtException(err, true /* fromPromise */); Error: db down (process exits with code 1)
TypeError: Converting circular structure to JSON
#31TypeError: Converting circular structure to JSON --> starting at object with constructor 'Object' --- property 'parent' closes the circle
ENOENT reading a file that exists: relative path resolved from the wrong folder
#30Error: ENOENT: no such file or directory, open './data.json' (the file is right next to the script)
ERR_PACKAGE_PATH_NOT_EXPORTED when importing a file deep inside a package
#29Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/helper' is not defined by "exports" in /app/node_modules/mylib/package.json
SyntaxError: await is only valid in async functions and the top level bodies of modules
#28SyntaxError: await is only valid in async functions and the top level bodies of modules
Named export not found: the requested module is a CommonJS module
#27SyntaxError: Named export 'greet' not found. The requested module './lib.cjs' is a CommonJS module, which may not support all module.exports as named exports.
Importing a JSON file in ESM fails: needs an import attribute of type json
#26TypeError [ERR_IMPORT_ATTRIBUTE_MISSING]: Module "file:///app/config.json" needs an import attribute of "type: json"
ERR_MODULE_NOT_FOUND for a relative import without the .js extension (ESM)
#25Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/app/utils' imported from /app/app.js. Did you mean to import "./utils.js"?
ReferenceError: __dirname is not defined in ES module scope
#24ReferenceError: __dirname is not defined in ES module scope
ReferenceError: require is not defined in ES module scope
#23ReferenceError: require is not defined in ES module scope, you can use import instead
node --test <folder>/ fails with Cannot find module on Node 22+
#17Error: Cannot find module '/path/to/project/tests' (MODULE_NOT_FOUND) when running node --test tests/