Error map
AttributeError AttributeError: 'X' object has no attribute 'y'
Python · layer 4, Application & API
Centre: this error. First ring: errors it is linked with (12). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.
Directly related (12)
System.InvalidCastException: Unable to cast object of type 'X' to type 'Y'
An explicit cast failed because the object’s runtime type isn’t the target type.
UnboundLocalError: cannot access local variable 'x' where it is not associated with a value
A function assigns to a variable somewhere, which makes it local everywhere in that function — so reading it before the assignmen…
Swift: Cannot convert value of type 'X' to expected argument type 'Y'
The value’s type doesn’t match what the function or property expects.
TypeError: 'NoneType' object is not subscriptable
You used `[ ]` on a value that is `None` — typically a function that returned nothing.
TS2564: Property 'x' has no initializer and is not definitely assigned in the constructor
With strictPropertyInitialization on, a class property declared without ? or a default isn’t set in the constructor.
TypeError: x is not a function
You called something as a function, but its value is not a function (it’s undefined, a string, an object…).
IndexError: list index out of range
Code accessed a list position that doesn’t exist.
ZeroDivisionError: division by zero
A number was divided (or modulo’d) by zero.
UnicodeEncodeError: 'charmap' codec can't encode character '\u2192'
Python tried to write text in an encoding that can’t represent some characters — common in Windows consoles and files opened with…
KeyError: 'x'
You accessed a dictionary key that doesn’t exist.
TypeError: f() missing 1 required positional argument: 'x'
A function was called without a required parameter.
ImportError: cannot import name 'x' from 'y'
The module was found, but the name you’re importing from it doesn’t exist — usually a version change or a circular import.
Two steps away (36)
java.lang.ClassCastException: class A cannot be cast to class B
An object was cast to a type it isn’t.
java.lang.IllegalArgumentException
A method rejected an argument value as invalid.
java.lang.IllegalStateException
A method was called when the object wasn’t in the right state for it.
ReferenceError: x is not defined
Code refers to a variable or function name that doesn’t exist in the current scope.
NameError: name 'x' is not defined
Python doesn’t know the name — it was never assigned/imported in this scope, or it’s misspelled.
SyntaxError: Identifier 'x' has already been declared
The same let/const/class name was declared twice in the same scope.
TS7016: Could not find a declaration file for module 'x'. 'x.js' implicitly has an 'any' type.
The JavaScript package has no TypeScript types bundled and no @types package installed.
TS2304: Cannot find name 'x'.
TypeScript doesn’t know an identifier — a missing import, missing type definitions (e.g. for Node or Jest globals), or a typo.
TS2339: Property 'x' does not exist on type 'Y'.
TypeScript’s type for the object doesn’t include that property.
TypeError: Cannot read properties of undefined (reading 'x')
You tried to access a property on a value that is `undefined` (or `null`) — usually data that hasn’t loaded yet or a wrong proper…
java.lang.NullPointerException
Code called a method or accessed a field on a reference that is `null`.
SQL Error: division by zero / Divide by zero error encountered
An expression divided by a value that was 0 for at least one row.
TypeError: x is not a constructor
new was used with something that isn’t a class/constructor — usually a wrong import.
TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
A value’s type doesn’t match the function parameter — commonly a possibly-undefined value passed where a definite one is required.
Fatal error: Uncaught TypeError: foo(): Argument #1 ($x) must be of type int, string given
A function received a value of the wrong type for a typed parameter.
Error: Cannot find module 'x' (MODULE_NOT_FOUND)
Node can’t resolve the module path — the package isn’t installed, or a relative path/extension is wrong.
TypeError: Cannot set properties of undefined (setting 'x')
Code assigned a property on a value that is undefined (or null).
TypeError: Assignment to constant variable.
Code reassigned a variable declared with const.
Warning: Each child in a list should have a unique "key" prop
When rendering a list with `.map()`, each element needs a stable, unique `key` so React can track items between renders.
java.lang.ArrayIndexOutOfBoundsException: Index 5 out of bounds for length 5
Code accessed an array index outside 0 … length-1.
java.lang.StringIndexOutOfBoundsException: begin 0, end 10, length 5
substring()/charAt() used an index outside the string.
RangeError: Maximum call stack size exceeded
A function called itself (directly or indirectly) too many times — usually infinite recursion.
java.lang.ArithmeticException: / by zero
Integer division or modulo by zero.
Fatal error: Uncaught DivisionByZeroError: Division by zero
Code divided by zero (or used modulo by zero) — PHP 8 throws instead of warning.
URIError: URI malformed
decodeURIComponent/decodeURI received an invalid percent-encoded sequence.
Unexpected characters at the top of the page / headers already sent by BOM
A UTF-8 byte-order mark (BOM) at the start of a PHP file is sent as output, breaking headers, JSON and images.
ERROR: invalid byte sequence for encoding "UTF8": 0x00
Text contained bytes invalid in UTF-8 — often a NUL byte (0x00) or Latin-1/Windows-1252 data.
Warning: Undefined array key / Undefined index
Your code reads an array key that doesn’t exist — common with `$_GET`, `$_POST` and decoded JSON.
Kubernetes: CreateContainerConfigError — secret / configmap not found
Kubernetes can’t build the container’s configuration — usually a referenced Secret, ConfigMap or key doesn’t exist in that namesp…
java.lang.NumberFormatException: For input string: "x"
A string couldn’t be parsed as a number — it’s empty, has spaces/commas, is too large, or isn’t numeric.
Fatal error: Uncaught ArgumentCountError: Too few arguments to function foo(), 1 passed and exactly 2 expected
A function was called with fewer arguments than it requires.
ERROR: function x(text) does not exist — No function matches the given name and argument types
PostgreSQL found no function with that name and argument types — wrong types, missing extension, or schema not in search_path.
TypeError: f() takes 1 positional argument but 2 were given
A function was called with more positional arguments than it accepts — very often a method missing `self`.
ModuleNotFoundError: No module named 'x'
Python can’t find the module you import — it isn’t installed in the interpreter/virtualenv that’s running, or the import path is…
[ERROR] Failed to execute goal on project x: Could not resolve dependencies for project
Maven couldn’t download or find one or more dependencies.
ERROR: Could not find a version that satisfies the requirement x (from versions: none)
pip found no installable version of the package for your Python version, OS or index.
Map another error
Popular: 500403400ORA-009331064Critical errorFileNotFoundException assemblyTypeError