JavaScript, TypeScript, Python, Go, Java & Docker Error Reference

The exact error string, the root cause, and a copy-paste fix — for the errors developers actually paste into search. Covering JSON, Node.js, Rust, Kafka, database and network errors too.

This is an authoritative reference for the errors you actually hit while building: JavaScript & TypeScript from the browser and Node.js, Python from the json module and file handling, plus Go, Rust, Java, Docker, and database errors and the JSON parse/serialization, encoding, build, and network/API failures at the core. Every entry is a verbatim error message, so you can search the message you actually see.

What makes it useful: each page gives the exact error string, the root cause in plain language, and a copy-paste fix — not generic advice. Use the filterable table below to find your error fast, or browse the categories underneath. Working with a JSON API response right now? Inspect it with the JSON Formatter or JSON Validator.

Not sure exactly what your error is called? Paste the raw stack trace and jump straight to the fix.

Open the Error Log Analyzer →

Error reference

0 errors documented · jump to a category:

ErrorLanguage / ContextCategory
TypeError: Failed to fetch JavaScript / Browser Network
CORS policy: No ‘Access-Control-Allow-Origin’ header is present JavaScript / Browser Network
net::ERR_NAME_NOT_RESOLVED Browser / DNS Network
TypeError: body stream already read JavaScript / fetch Network
AbortError: The operation was aborted JavaScript / fetch Network
Unexpected token < in JSON at position 0 JavaScript JSON
Unexpected end of JSON input JavaScript JSON
Unexpected token o in JSON at position 1 JavaScript JSON
JSON SyntaxError: Missing Comma JSON JSON
JSON SyntaxError: Trailing Comma JSON JSON
JSON SyntaxError: Single Quotes Not Allowed JSON JSON
JSON SyntaxError: Comments Not Allowed JSON JSON
JSON SyntaxError: NaN / Infinity Not Allowed JSON JSON
TypeError: Converting circular structure to JSON JavaScript JSON
JSON.parse returns string, not object JavaScript JSON
SyntaxError in JSON.parse — error handling patterns JavaScript JSON
JSON.stringify drops a property (undefined / function / symbol) JavaScript JSON
TypeError: Do not know how to serialize a BigInt JavaScript JSON
SyntaxError: Unexpected non-whitespace character after JSON data JavaScript JSON
JSONDecodeError: Expecting value: line 1 column 1 (char 0) Python Python
JSONDecodeError: Expecting property name enclosed in double quotes Python Python
JSONDecodeError: Extra data: line 1 column N (char N) Python Python
JSONDecodeError: Unterminated string starting at Python Python
TypeError: Object of type datetime is not JSON serializable Python Python
SyntaxError: Bad control character in string literal in JSON JavaScript / JSON JSON
net::ERR_CONNECTION_REFUSED Browser / Network Network
Error: listen EADDRINUSE: address already in use Node.js Node.js
npm ERR! code ERESOLVE — unable to resolve dependency tree npm / Node.js Node.js
Error: Cannot find module (MODULE_NOT_FOUND) Node.js Node.js
JsonWebTokenError: invalid signature & jwt malformed Node.js / JWT Node.js
process.env.X is undefined Node.js / Vite / Next.js Node.js
SyntaxError: Cannot use import statement outside a module Node.js / JavaScript Node.js
ReferenceError: require is not defined in ES module scope Node.js / JavaScript Node.js
FATAL ERROR: JavaScript heap out of memory Node.js Node.js
Error: error:0308010C:digital envelope routines::unsupported Node.js / webpack Node.js
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff Python Python
InvalidCharacterError: Failed to execute 'atob' — string not correctly encoded JavaScript / Browser Runtime
URIError: URI malformed JavaScript Runtime
TypeError: string indices must be integers Python Python
TypeError: the JSON object must be str, bytes or bytearray, not dict Python Python
KeyError in Python Python Python
ValueError: Trailing data Python / pandas Python
json: cannot unmarshal string into Go value of type int Go JSON
FATAL: sorry, too many clients already PostgreSQL Database
ERROR: deadlock detected PostgreSQL Database
duplicate key value violates unique constraint PostgreSQL Database
Error response from daemon: port is already allocated Docker Docker
standard_init_linux.go: exec format error Docker Docker
Cannot connect to the Docker daemon. Is the docker daemon running? Docker Docker
Container exited with code 137 (OOMKilled) Docker Docker
Got permission denied while trying to connect to the Docker daemon socket Docker Docker
no space left on device Docker Docker
Conflict. The container name "/X" is already in use Docker Docker
OCI runtime create failed: executable file not found in $PATH Docker Docker
SerializationException: Unknown magic byte! Kafka Kafka
CommitFailedException: Offset commit cannot be completed Kafka Kafka
TimeoutException: Expiring N record(s) Kafka Kafka
OffsetOutOfRangeException: Fetch offset is out of range Kafka Kafka
Error while fetching metadata: LEADER_NOT_AVAILABLE Kafka Kafka
TS2322: Type 'X' is not assignable to type 'Y' TypeScript TypeScript
TS2339: Property 'X' does not exist on type 'Y' TypeScript TypeScript
TS2532: Object is possibly 'undefined' TypeScript TypeScript
TS2345: Argument of type 'X' is not assignable to parameter of type 'Y' TypeScript TypeScript
TS7016: Could not find a declaration file for module 'X' TypeScript TypeScript
TS7053: Element implicitly has an 'any' type (index signature) TypeScript TypeScript
TS2349: This expression is not callable TypeScript TypeScript
TS2307: Cannot find module 'X' or its corresponding type declarations TypeScript TypeScript
TS2304: Cannot find name 'X' TypeScript TypeScript
TS7006: Parameter 'x' implicitly has an 'any' type TypeScript TypeScript
TS2769: No overload matches this call TypeScript TypeScript
TypeError: Cannot read properties of null (reading 'X') JavaScript Runtime
UnhandledPromiseRejectionWarning Node.js Node.js
RangeError: Maximum call stack size exceeded JavaScript Runtime
TypeError: Cannot read properties of undefined (reading 'X') JavaScript Runtime
Uncaught TypeError: X is not a function JavaScript Runtime
Uncaught ReferenceError: X is not defined JavaScript Runtime
TypeError: Assignment to constant variable JavaScript Runtime
ReferenceError: Cannot access 'X' before initialization JavaScript Runtime
TypeError: Cannot set properties of undefined (setting 'X') JavaScript Runtime
TypeError: Cannot convert undefined or null to object JavaScript Runtime
TypeError: X.map is not a function JavaScript Runtime
TypeError: Failed to construct 'URL': Invalid URL JavaScript Runtime
RangeError: Invalid array length JavaScript Runtime
ReferenceError: process is not defined JavaScript / Bundler Runtime
net::ERR_CERT_AUTHORITY_INVALID Browser / TLS Network
net::ERR_SSL_PROTOCOL_ERROR Browser / TLS Network
net::ERR_TOO_MANY_REDIRECTS Browser / Network Network
net::ERR_CONNECTION_TIMED_OUT Browser / Network Network
net::ERR_INTERNET_DISCONNECTED Browser / Network Network
net::ERR_BLOCKED_BY_CLIENT Browser / Network Network
CORS: Response to preflight request doesn't pass access control check JavaScript / Browser Network
CORS: Request header field is not allowed by Access-Control-Allow-Headers JavaScript / Browser Network
Mixed Content: was loaded over HTTPS, but requested an insecure resource Browser / HTTPS Network
panic: runtime error: invalid memory address or nil pointer dereference Go Go
panic: runtime error: index out of range [N] with length M Go Go
fatal error: all goroutines are asleep - deadlock! Go Go
error[E0382]: borrow of moved value Rust Rust
error[E0499]: cannot borrow as mutable more than once at a time Rust Rust
Exception in thread "main" java.lang.NullPointerException Java Java
undefined: X Go Go
imported and not used: "X" Go Go
cannot find module providing package X Go Go
error[E0308]: mismatched types Rust Rust
error[E0277]: the trait bound is not satisfied Rust Rust
error[E0597]: does not live long enough Rust Rust
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException Java Java
ClassNotFoundException / NoClassDefFoundError Java Java
error: cannot find symbol Java Java
panic: interface conversion: interface {} is X, not Y Go Go
called `Option::unwrap()` on a `None` value Rust Rust
java.util.ConcurrentModificationException Java Java
declared and not used: x Go Go
error[E0599]: no method named 'X' found Rust Rust
java.lang.OutOfMemoryError: Java heap space Java Java
AttributeError: 'NoneType' object has no attribute 'X' Python Python
TypeError: 'NoneType' object is not subscriptable Python Python
IndentationError: unexpected indent Python Python
error: externally-managed-environment (pip / PEP 668) Python / pip Python
Error: read ECONNRESET / socket hang up Node.js Node.js
npm ERR! code EACCES: permission denied npm / Node.js Node.js
gyp ERR! build error node-gyp / native addons Node.js
Module not found: Can't resolve 'fs' Next.js / webpack / Vite Node.js
504 (Outdated Optimize Dep) Vite Node.js
ssl.SSLCertVerificationError: certificate verify failed Python / requests Python

No errors match your filter.

Browse errors by category

Every error below links to a full reference page with the exact message, root cause, and fix. The same errors are in the searchable table above — these sections group them by type for browsing.

JSON Parse & Serialization Errors

Errors thrown by JSON.parse(), response.json(), and JSON.stringify() when data isn't valid JSON or a value can't be serialized.

Python Errors

Errors from Python's json module, file reading, and the requests library — parsing, serialization, and text encoding.

Encoding & Base64 Errors

Errors decoding base64 and binary data in the browser and Node.js.

URI & URL Errors

Errors from percent-encoding and decoding URLs and query strings.

Node.js & Build Errors

Errors from the Node.js runtime, the npm CLI, and JavaScript build tools like webpack and Vite.

Network & Fetch Errors

Errors where the request fails at the network level — before or instead of a normal HTTP response.

Database Errors

Errors from PostgreSQL — connections, locking, and constraint violations.

Docker Errors

Errors from building and running Docker containers.

Kafka Errors

Errors from Kafka producers and consumers — serialization, offsets, rebalancing, and cluster connectivity.

TypeScript Errors

Compiler errors from tsc — type mismatches, null safety, and missing declarations. Many come from untyped JSON; generate accurate types with JSON to TypeScript.

JavaScript Runtime Errors

Errors thrown while JavaScript runs — missing values and runaway recursion.

Go, Rust & Java Errors

Runtime panics and compile errors from Go, Rust, and Java — nil/null dereferences, bounds, deadlocks, and the Rust borrow checker.

Frequently Asked Questions

What does TypeError: Failed to fetch mean?

TypeError: Failed to fetch means the browser could not complete the HTTP request at the network level — before the server ever responded. The most common causes are a CORS block, the server being unreachable (ERR_CONNECTION_REFUSED), a mixed-content policy violation (HTTP from an HTTPS page), or no internet connection. See the full reference for all causes and fixes.

What is a CORS error?

A CORS (Cross-Origin Resource Sharing) error happens when a browser script tries to fetch a resource from a different origin and the server does not include the Access-Control-Allow-Origin header in its response. The browser blocks the response as a security measure. The fix is always on the server: add CORS headers to your API responses. See the CORS error reference for framework-specific fixes.

Why does JSON.parse throw a SyntaxError?

JSON.parse throws SyntaxError when the string is not valid JSON. Common causes include: the server returned HTML instead of JSON (giving Unexpected token <), a trailing comma or single quotes in the JSON, an unterminated string, or the response was empty (giving Unexpected end of JSON input). Check what the server actually returned with response.text() before calling .json().

What is the difference between a network error and an HTTP error?

A network error (like TypeError: Failed to fetch) means the request never reached the server — the connection failed at the network level. An HTTP error (like 404 or 500) means the server received the request and responded with an error status code. In JavaScript, fetch() only rejects on network errors; HTTP errors come back as resolved responses with a non-OK status that you must check with response.ok or response.status. See the HTTP Status Codes reference for all codes.

Last updated: June 2026