# Production error fixes

136 errors from Node.js, Next.js and Python apps. Find the exact one you got: each page starts with the fix that works in most cases, then lists the causes and the less common fixes.

By Jake Marsh, who builds Runheed, error tracking your coding agent can read. Updated 2026-11-23.

Catch these in production: [Next.js](https://runheed.com/for/nextjs), [Express](https://runheed.com/for/express), [FastAPI](https://runheed.com/for/fastapi), [Django](https://runheed.com/for/django), [Flask](https://runheed.com/for/flask).

Search the error guides

## Network and HTTP

- [Error: read ECONNRESET](https://runheed.com/errors/econnreset)Node.js
- [Error: connect ECONNREFUSED 127.0.0.1:5432](https://runheed.com/errors/econnrefused)Node.js
- [Error: connect ETIMEDOUT 10.0.4.12:5432](https://runheed.com/errors/etimedout)Node.js
- [TypeError: fetch failed](https://runheed.com/errors/fetch-failed)Node.js
- [Error: self-signed certificate in certificate chain](https://runheed.com/errors/self-signed-certificate-in-certificate-chain)Node.js
- [Error: getaddrinfo ENOTFOUND api.example.com](https://runheed.com/errors/getaddrinfo-enotfound)Node.js
- [Error: write EPIPE](https://runheed.com/errors/epipe-broken-pipe)Node.js
- [Access to fetch at 'https://api.example.com/orders' from origin 'https://app.example.com' has been blocked ...](https://runheed.com/errors/blocked-by-cors-policy)Node.js
- [AxiosError: Request failed with status code 401](https://runheed.com/errors/axioserror-request-failed-with-status-code)Node.js
- [FunctionsHttpError: Edge Function returned a non-2xx status code](https://runheed.com/errors/supabase-edge-function-returned-non-2xx)Supabase
- [requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.example.com', port=443): Max retries exc...](https://runheed.com/errors/requests-max-retries-exceeded)Python
- [httpx.ReadTimeout: The read operation timed out](https://runheed.com/errors/httpx-readtimeout)Python
- [ConnectionResetError: [Errno 104] Connection reset by peer](https://runheed.com/errors/connectionreseterror-errno-104)Python
- [BrokenPipeError: [Errno 32] Broken pipe](https://runheed.com/errors/brokenpipeerror-errno-32)Python
- [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate](https://runheed.com/errors/ssl-certificate-verify-failed)Python
- [Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client](https://runheed.com/errors/err-http-headers-sent)Node.js
- [422 Unprocessable Entity: {"detail":[{"type":"missing","loc":["body","email"],"msg":"Field required"}]}](https://runheed.com/errors/fastapi-422-unprocessable-entity)Python
- [Error: No signatures found matching the expected signature for payload. Are you passing the raw request bod...](https://runheed.com/errors/stripe-no-signatures-found-matching-expected-signature)Node.js
- [TokenExpiredError: jwt expired](https://runheed.com/errors/jwt-expired)Node.js
- [AuthSessionMissingError: Auth session missing!](https://runheed.com/errors/supabase-auth-session-missing)Supabase
- [Error: 429 You exceeded your current quota, please check your plan and billing details.](https://runheed.com/errors/openai-429-rate-limit-or-quota)Node.js

## Databases

- [PrismaClientKnownRequestError: Unique constraint failed on the fields: (\`email\`)](https://runheed.com/errors/prisma-p2002-unique-constraint-failed)Node.js
- [PrismaClientInitializationError: Can't reach database server at \`db.example.com:5432\`](https://runheed.com/errors/prisma-cant-reach-database-server)Node.js
- [MongoServerError: E11000 duplicate key error collection: app.users index: email_1 dup key: { email: "ada@ex...](https://runheed.com/errors/mongo-e11000-duplicate-key)Node.js
- [[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379](https://runheed.com/errors/redis-econnrefused-6379)Node.js
- [psycopg2.OperationalError: server closed the connection unexpectedly](https://runheed.com/errors/server-closed-the-connection-unexpectedly)Python
- [django.db.utils.OperationalError: no such table: orders_order](https://runheed.com/errors/django-operationalerror-no-such-table)Python
- [psycopg.errors.UniqueViolation: duplicate key value violates unique constraint "users_email_key"](https://runheed.com/errors/duplicate-key-value-violates-unique-constraint)Python
- [error: new row violates row-level security policy for table "todos"](https://runheed.com/errors/new-row-violates-row-level-security-policy)Node.js
- [error: relation "todo" does not exist](https://runheed.com/errors/relation-does-not-exist)Node.js
- [psycopg.errors.UndefinedColumn: column "titel" does not exist](https://runheed.com/errors/column-does-not-exist)Python
- [error: infinite recursion detected in policy for relation "members"](https://runheed.com/errors/infinite-recursion-detected-in-policy)Node.js
- [error: permission denied for table profiles](https://runheed.com/errors/permission-denied-for-table)Node.js
- [error: null value in column "total" of relation "orders" violates not-null constraint](https://runheed.com/errors/null-value-violates-not-null-constraint)Node.js
- [error: insert or update on table "orders" violates foreign key constraint "orders_user_id_fkey"](https://runheed.com/errors/foreign-key-constraint-violation)Node.js
- [error: invalid input syntax for type uuid: "undefined"](https://runheed.com/errors/invalid-input-syntax-for-type-uuid)Node.js
- [sqlalchemy.exc.PendingRollbackError: This Session's transaction has been rolled back due to a previous exce...](https://runheed.com/errors/sqlalchemy-pendingrollbackerror)Python
- [sqlite3.OperationalError: database is locked](https://runheed.com/errors/sqlite-database-is-locked)Python
- [pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused (configured tim...](https://runheed.com/errors/pymongo-serverselectiontimeouterror)Python
- [redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.](https://runheed.com/errors/redis-connectionerror-python)Python

## Imports and modules

- [Error [ERR_REQUIRE_ESM]: require() of ES Module ... not supported.](https://runheed.com/errors/err-require-esm)Node.js
- [TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /app/src/index.ts](https://runheed.com/errors/err-unknown-file-extension-ts)Node.js
- [Error: Cannot find module 'x'](https://runheed.com/errors/cannot-find-module)Node.js
- [SyntaxError: Cannot use import statement outside a module](https://runheed.com/errors/cannot-use-import-statement-outside-a-module)Node.js
- [Module not found: Can't resolve 'fs'](https://runheed.com/errors/module-not-found-fs)Next.js
- [Module not found: Can't resolve '@/components/OrderTable'](https://runheed.com/errors/module-not-found-cant-resolve)Next.js
- [ModuleNotFoundError: No module named 'x'](https://runheed.com/errors/modulenotfounderror)Python
- [ImportError: cannot import name 'x' from partially initialized module 'y' (most likely due to a circular im...](https://runheed.com/errors/circular-import)Python
- [ImportError: attempted relative import with no known parent package](https://runheed.com/errors/attempted-relative-import-no-known-parent-package)Python
- [AttributeError: module 'requests' has no attribute 'get'](https://runheed.com/errors/module-has-no-attribute)Python
- [TypeError: 'module' object is not callable](https://runheed.com/errors/module-object-is-not-callable)Python
- [ImportError: libGL.so.1: cannot open shared object file: No such file or directory](https://runheed.com/errors/libgl-so-1-cannot-open-shared-object-file)Python
- [Error: Could not load the "sharp" module using the linux-x64 runtime](https://runheed.com/errors/could-not-load-sharp-module)Node.js

## React and Next.js rendering

- [ResizeObserver loop completed with undelivered notifications.](https://runheed.com/errors/resizeobserver-loop-completed-with-undelivered-notifications)Browser
- [Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be re...](https://runheed.com/errors/hydration-mismatch)Next.js
- [Error: An error occurred in the Server Components render. The specific message is omitted in production bui...](https://runheed.com/errors/server-components-render-error)Next.js
- [Error: Dynamic server usage: Route /x couldn't be rendered statically because it used \`headers\`.](https://runheed.com/errors/dynamic-server-usage)Next.js
- [ReferenceError: window is not defined](https://runheed.com/errors/window-is-not-defined)Next.js
- [Error: Event handlers cannot be passed to Client Component props.](https://runheed.com/errors/event-handlers-cannot-be-passed-to-client-component-props)Next.js
- [Error: Only plain objects, and a few built-ins, can be passed to Client Components from Server Components.](https://runheed.com/errors/only-plain-objects-can-be-passed-to-client-components)Next.js
- [Error: Route "/orders/[id]" used \`params.id\`. \`params\` should be awaited before using its properties.](https://runheed.com/errors/params-should-be-awaited)Next.js
- [Error: NEXT_REDIRECT](https://runheed.com/errors/next-redirect-error)Next.js
- [Error: NextRouter was not mounted.](https://runheed.com/errors/nextrouter-was-not-mounted)Next.js
- [Error: Invalid src prop (https://cdn.example.com/p/42.jpg) on \`next/image\`, hostname "cdn.example.com" is n...](https://runheed.com/errors/next-image-hostname-not-configured)Next.js
- [TypeError: Failed to parse URL from /api/orders](https://runheed.com/errors/failed-to-parse-url)Next.js
- [Error: Too many re-renders. React limits the number of renders to prevent an infinite loop.](https://runheed.com/errors/too-many-re-renders)Next.js
- [useSearchParams() should be wrapped in a suspense boundary at page "/search".](https://runheed.com/errors/usesearchparams-suspense-boundary)Next.js
- [You're importing a module that depends on \`useState\` into a React Server Component module. This API is only...](https://runheed.com/errors/react-hook-in-server-component)Next.js
- [Error: Objects are not valid as a React child (found: object with keys {id, name, total}). If you meant to ...](https://runheed.com/errors/objects-are-not-valid-as-a-react-child)Next.js
- [Error: Element type is invalid: expected a string (for built-in components) or a class/function (for compos...](https://runheed.com/errors/element-type-is-invalid)Next.js
- [Error: Failed to find Server Action "7f3a9c2e5d1b4a6f8c0e2d7b9a1c3e5f7d9b0a2c4e". This request might be fro...](https://runheed.com/errors/failed-to-find-server-action)Next.js
- [ChunkLoadError: Loading chunk 4512 failed. (error: https://example.com/\_next/static/chunks/4512-a1b2c3d4.js)](https://runheed.com/errors/chunkloaderror-loading-chunk-failed)Next.js

## Undefined, None and type errors

- [panic: assignment to entry in nil map](https://runheed.com/errors/go-assignment-to-entry-in-nil-map)Go
- [TypeError: slugify(): Argument #1 ($title) must be of type string, null given](https://runheed.com/errors/php-must-be-of-type-string-null-given)PHP
- [System.InvalidOperationException: Sequence contains no elements](https://runheed.com/errors/dotnet-sequence-contains-no-elements).NET
- [panic: runtime error: invalid memory address or nil pointer dereference](https://runheed.com/errors/go-nil-pointer-dereference)Go
- [NoMethodError: undefined method 'email' for nil](https://runheed.com/errors/ruby-undefined-method-for-nil)Ruby
- [java.lang.NullPointerException: Cannot invoke "String.toLowerCase()" because the return value of "Customer....](https://runheed.com/errors/java-nullpointerexception)Java
- [System.NullReferenceException: Object reference not set to an instance of an object.](https://runheed.com/errors/dotnet-nullreferenceexception).NET
- [TypeError: Cannot read properties of undefined (reading 'x')](https://runheed.com/errors/cannot-read-properties-of-undefined)Node.js
- [TypeError: Cannot destructure property 'id' of 'undefined' as it is undefined.](https://runheed.com/errors/cannot-destructure-property-of-undefined)Node.js
- [TypeError: Cannot convert undefined or null to object](https://runheed.com/errors/cannot-convert-undefined-or-null-to-object)Node.js
- [TypeError: items is not iterable](https://runheed.com/errors/is-not-iterable)Node.js
- [TypeError: x is not a function](https://runheed.com/errors/is-not-a-function)Node.js
- [TypeError: Client is not a constructor](https://runheed.com/errors/is-not-a-constructor)Node.js
- [ReferenceError: x is not defined](https://runheed.com/errors/is-not-defined)Node.js
- [TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined](https://runheed.com/errors/err-invalid-arg-type)Node.js
- [TypeError: 'NoneType' object is not subscriptable](https://runheed.com/errors/nonetype-not-subscriptable)Python
- [AttributeError: 'NoneType' object has no attribute 'x'](https://runheed.com/errors/nonetype-has-no-attribute)Python
- [TypeError: 'NoneType' object is not iterable](https://runheed.com/errors/nonetype-object-is-not-iterable)Python
- [KeyError: 'email'](https://runheed.com/errors/keyerror)Python
- [TypeError: unhashable type: 'list'](https://runheed.com/errors/unhashable-type-list)Python
- [AttributeError: 'dict' object has no attribute 'name'](https://runheed.com/errors/dict-object-has-no-attribute)Python
- [IndexError: list index out of range](https://runheed.com/errors/indexerror-list-index-out-of-range)Python
- [TypeError: unsupported operand type(s) for +: 'int' and 'str'](https://runheed.com/errors/unsupported-operand-types)Python
- [ValueError: invalid literal for int() with base 10: ''](https://runheed.com/errors/invalid-literal-for-int)Python
- [TypeError: \__init_\_() got an unexpected keyword argument 'proxies'](https://runheed.com/errors/unexpected-keyword-argument)Python
- [UnboundLocalError: cannot access local variable 'total' where it is not associated with a value](https://runheed.com/errors/unboundlocalerror-cannot-access-local-variable)Python
- [RuntimeError: dictionary changed size during iteration](https://runheed.com/errors/dictionary-changed-size-during-iteration)Python
- [ValueError: too many values to unpack (expected 2)](https://runheed.com/errors/too-many-values-to-unpack)Python
- [TypeError: 'str' object is not callable](https://runheed.com/errors/str-object-is-not-callable)Python

## JSON, parsing and validation

- [SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON](https://runheed.com/errors/unexpected-token-json)Node.js
- [SyntaxError: Unexpected end of JSON input](https://runheed.com/errors/unexpected-end-of-json-input)Node.js
- [TypeError: Converting circular structure to JSON](https://runheed.com/errors/converting-circular-structure-to-json)Node.js
- [ZodError: [ { "expected": "string", "code": "invalid_type", "path": [ "email" ], "message": "Invalid input:...](https://runheed.com/errors/zoderror-validation-failed)Node.js
- [RangeError: Invalid time value](https://runheed.com/errors/invalid-time-value)Node.js
- [json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)](https://runheed.com/errors/jsondecodeerror-expecting-value)Python
- [TypeError: Object of type datetime is not JSON serializable](https://runheed.com/errors/object-is-not-json-serializable)Python
- [pydantic_core.\_pydantic_core.ValidationError: 1 validation error for User email Field required [type=miss...](https://runheed.com/errors/pydantic-validationerror)Python
- [UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte](https://runheed.com/errors/unicodedecodeerror)Python

## Memory, async and the process

- [[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a ...](https://runheed.com/errors/unhandled-promise-rejection)Node.js
- [FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory](https://runheed.com/errors/heap-out-of-memory)Node.js
- [RangeError: Maximum call stack size exceeded](https://runheed.com/errors/maximum-call-stack-size-exceeded)Node.js
- [RecursionError: maximum recursion depth exceeded](https://runheed.com/errors/recursionerror-maximum-recursion-depth-exceeded)Python
- [RuntimeError: Event loop is closed](https://runheed.com/errors/event-loop-is-closed)Python
- [RuntimeWarning: coroutine 'fetch_user' was never awaited](https://runheed.com/errors/coroutine-was-never-awaited)Python
- [Error: listen EADDRINUSE: address already in use :::3000](https://runheed.com/errors/eaddrinuse)Node.js
- [OSError: [Errno 98] Address already in use](https://runheed.com/errors/python-address-already-in-use)Python
- [Error: error:0308010C:digital envelope routines::unsupported](https://runheed.com/errors/err-ossl-evp-unsupported)Node.js
- [MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [Socke...](https://runheed.com/errors/maxlistenersexceededwarning)Node.js
- [Error: ENOENT: no such file or directory, open '/app/config.json'](https://runheed.com/errors/enoent-no-such-file-or-directory)Node.js
- [Error: EACCES: permission denied, open '/app/data/cache.json'](https://runheed.com/errors/eacces-permission-denied)Node.js
- [Error: EMFILE: too many open files, open '/app/uploads/0412.jpg'](https://runheed.com/errors/emfile-too-many-open-files)Node.js
- [PermissionError: [Errno 13] Permission denied: '/app/data/report.csv'](https://runheed.com/errors/permissionerror-errno-13)Python
- [CredentialsProviderError: Could not load credentials from any providers](https://runheed.com/errors/aws-could-not-load-credentials)Node.js
- [botocore.exceptions.NoCredentialsError: Unable to locate credentials](https://runheed.com/errors/boto3-nocredentialserror)Python
- [django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.](https://runheed.com/errors/django-secret-key-must-not-be-empty)Python

## MCP servers and clients

- [McpError: MCP error -32000: Connection closed](https://runheed.com/errors/mcp-error-32000-connection-closed)Node.js
- [McpError: MCP error -32001: Request timed out](https://runheed.com/errors/mcp-error-32001-request-timed-out)Node.js
- [MCP error -32602: Input validation error: Invalid arguments for tool get_order](https://runheed.com/errors/mcp-error-32602-invalid-params)Node.js
- [Error: spawn npx ENOENT](https://runheed.com/errors/spawn-npx-enoent-mcp)Node.js
- [Bad Request: No valid session ID provided](https://runheed.com/errors/mcp-no-valid-session-id-provided)Node.js
- [Not Acceptable: Client must accept both application/json and text/event-stream](https://runheed.com/errors/mcp-not-acceptable-client-must-accept)Node.js
- [ModuleNotFoundError: No module named 'mcp.server.fastmcp'](https://runheed.com/errors/no-module-named-mcp-server-fastmcp)Python
- [Error executing tool get_order](https://runheed.com/errors/mcp-error-executing-tool)Python
- [Bad Request: Unsupported protocol version: 2026-07-28](https://runheed.com/errors/mcp-unsupported-protocol-version)Node.js

---

Human-readable version: https://runheed.com/errors
