Error map

UnboundLocalError UnboundLocalError: cannot access local variable 'x' where it is not associated with a value

Python · layer 4, Application & API

Open the full error page →

Centre: this error. First ring: errors it is linked with (11). 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.

UnboundLocalError — UnboundLocalError: cannot access local variable 'x' where it is not associated with a value (Python)UnboundLoca…ReferenceError — ReferenceError: x is not defined (JavaScript)ReferenceErrorTDZ — ReferenceError: Cannot access 'x' before initialization (JavaScript)TDZalready declared — SyntaxError: Identifier 'x' has already been declared (JavaScript)already declaredConnectionRefusedError — ConnectionRefusedError: [Errno 111] Connection refused (Python)ConnectionRefusedEr…Event loop is closed — RuntimeError: Event loop is closed (Python)Event loop is closedNameError — NameError: name 'x' is not defined (Python)NameErrorCS0103 — error CS0103: The name 'x' does not exist in the current context (.NET)CS0103AttributeError — AttributeError: 'X' object has no attribute 'y' (Python)AttributeError403 — 403 Bearer error="insufficient_scope" (HTTP)403insufficientPermissions — Google API: 403 Request had insufficient authentication scopes (insufficientPermissions) (API)insufficientPermiss…missing_scope — Slack API: {"ok":false,"error":"missing_scope","needed":"chat:write"} (API)missing_scopeTypeError — TypeError: Cannot read properties of undefined (reading 'x') (JavaScript)TypeErrorTypeError: not a function — TypeError: x is not a function (JavaScript)TypeError: not a fu…Hydration failed — Error: Hydration failed because the initial UI does not match what was rendered on the server (React)Hydration failednot a constructor — TypeError: x is not a constructor (JavaScript)not a constructor1046 — MySQL ERROR 1046 (3D000): No database selected (MySQL)10461153 — MySQL ERROR 1153 (08S01): Got a packet bigger than 'max_allowed_packet' bytes (MySQL)1153Unexpected token < — SyntaxError: Unexpected token '<' (HTML served instead of JavaScript) (JavaScript)Unexpected token <unexpected end of input — SyntaxError: Unexpected end of input (JavaScript)unexpected end of i…missing ) — SyntaxError: missing ) after argument list (JavaScript)missing )ECONNREFUSED — Error: connect ECONNREFUSED 127.0.0.1:5432 (Node.js)ECONNREFUSED521 — Cloudflare Error 521: Web Server Is Down (Cloudflare)521ETIMEDOUT — API Request Timed Out (ETIMEDOUT / ReadTimeout / timeout of 30000ms exceeded) (API)ETIMEDOUTUnhandledPromiseRejection — Node.js: [UnhandledPromiseRejection] — This error originated either by throwing inside of an async function without a catch block (Node.js)UnhandledPromiseRej…await outside async — SyntaxError: await is only valid in async functions and the top level bodies of modules (JavaScript)await outside asyncAbortError — AbortError: The user aborted a request. / signal is aborted without reason (JavaScript)AbortErrorModuleNotFoundError — ModuleNotFoundError: No module named 'x' (Python)ModuleNotFoundErrorIndentationError — IndentationError: unexpected indent / expected an indented block (Python)IndentationErrorCS0246 — error CS0246: The type or namespace name 'X' could not be found (are you missing a using directive or an assembly reference?) (.NET)CS0246CS1061 — error CS1061: 'X' does not contain a definition for 'Y' and no accessible extension method 'Y' accepting a first argument of type 'X' could be found (.NET)CS1061CS8618 — warning CS8618: Non-nullable property 'X' must contain a non-null value when exiting constructor. Consider declaring the property as nullable (.NET)CS8618ImportError — ImportError: cannot import name 'x' from 'y' (Python)ImportErrorKeyError — KeyError: 'x' (Python)KeyErrorTypeError: NoneType — TypeError: 'NoneType' object is not subscriptable (Python)TypeError: NoneType403 — HTTP 403 Forbidden (HTTP)403invalid_grant — OAuth 2.0 Error: invalid_grant (Authentication)invalid_grantredirect_uri_mismatch — OAuth Error: redirect_uri_mismatch (Authentication)redirect_uri_mismat…invalid_scope — OAuth 2.0 Error: invalid_scope / insufficient_scope (Authentication)invalid_scopeAccess blocked: has not completed the Google verification process — Google OAuth: Error 403: access_denied — The developer hasn't given you access to this app / has not completed the Google verification process (Authentication)Access blocked: has…Google hasn't verified this app — Google OAuth: Google hasn't verified this app / This app isn't verified (Authentication)Google hasn't verif…AADSTS70011 — AADSTS70011: The provided request must include a 'scope' input parameter / provided value for scope is not valid (Authentication)AADSTS70011invalid_auth — Slack API: {"ok":false,"error":"invalid_auth"} (API)invalid_authchannel_not_found — Slack API: channel_not_found / not_in_channel (API)channel_not_found

Directly related (11)

ReferenceErrorJavaScript

ReferenceError: x is not defined

Code refers to a variable or function name that doesn’t exist in the current scope.

TDZJavaScript

ReferenceError: Cannot access 'x' before initialization

A let/const/class was used before its declaration line ran (temporal dead zone) — often a circular import.

already declaredJavaScript

SyntaxError: Identifier 'x' has already been declared

The same let/const/class name was declared twice in the same scope.

ConnectionRefusedErrorPython

ConnectionRefusedError: [Errno 111] Connection refused

Nothing is listening on the host/port Python tried to connect to.

Event loop is closedPython

RuntimeError: Event loop is closed

Async code tried to use an event loop that has already been shut down.

NameErrorPython

NameError: name 'x' is not defined

Python doesn’t know the name — it was never assigned/imported in this scope, or it’s misspelled.

CS0103.NET

error CS0103: The name 'x' does not exist in the current context

The identifier isn’t declared in scope — typo, variable declared in another block, missing using static, or a Razor/partial class…

AttributeErrorPython

AttributeError: 'X' object has no attribute 'y'

You accessed an attribute or method that doesn’t exist on that object type.

403HTTP

403 Bearer error="insufficient_scope"

The token is valid, but it doesn't carry the scope (permission) this endpoint requires.

insufficientPermissionsAPI

Google API: 403 Request had insufficient authentication scopes (insufficientPermissions)

The OAuth token was granted fewer scopes than the API method requires.

missing_scopeAPI

Slack API: {"ok":false,"error":"missing_scope","needed":"chat:write"}

The token does not have the OAuth scope required for this method.

Two steps away (32)

TypeErrorJavaScript

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…

TypeError: not a functionJavaScript

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…).

Hydration failedReact

Error: Hydration failed because the initial UI does not match what was rendered on the server

The HTML rendered on the server differs from the first client render, so React (Next.js/Remix) can’t attach to it.

not a constructorJavaScript

TypeError: x is not a constructor

new was used with something that isn’t a class/constructor — usually a wrong import.

1046MySQL

MySQL ERROR 1046 (3D000): No database selected

A query referenced tables without a database selected (no USE and no db in the connection).

1153MySQL

MySQL ERROR 1153 (08S01): Got a packet bigger than 'max_allowed_packet' bytes

A single statement or row exceeded max_allowed_packet — big BLOBs, huge INSERTs or large dump lines.

Unexpected token <JavaScript

SyntaxError: Unexpected token '<' (HTML served instead of JavaScript)

The browser loaded a .js file but received HTML (an error page or the SPA index.html).

unexpected end of inputJavaScript

SyntaxError: Unexpected end of input

The parser reached the end of the code (or JSON) while still expecting more — a missing } ) ] or empty JSON.

missing )JavaScript

SyntaxError: missing ) after argument list

A function call’s parentheses are unbalanced — often an unescaped quote or a missing comma/plus.

ECONNREFUSEDNode.js

Error: connect ECONNREFUSED 127.0.0.1:5432

Nothing is listening at that host:port — the target service is down or you’re connecting to the wrong address.

521Cloudflare

Cloudflare Error 521: Web Server Is Down

Cloudflare couldn’t connect to your origin — the connection was refused.

ETIMEDOUTAPI

API Request Timed Out (ETIMEDOUT / ReadTimeout / timeout of 30000ms exceeded)

The client gave up waiting — either for the connection to open or for the response to arrive.

UnhandledPromiseRejectionNode.js

Node.js: [UnhandledPromiseRejection] — This error originated either by throwing inside of an async function without a catch block

A promise rejected and nothing handled it; since Node 15 this crashes the process.

await outside asyncJavaScript

SyntaxError: await is only valid in async functions and the top level bodies of modules

await was used inside a function that isn’t async (or in a classic, non-module script).

AbortErrorJavaScript

AbortError: The user aborted a request. / signal is aborted without reason

A fetch was cancelled through an AbortController (or the browser cancelled it).

ModuleNotFoundErrorPython

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…

IndentationErrorPython

IndentationError: unexpected indent / expected an indented block

Python’s block structure is broken — inconsistent indentation or mixed tabs and spaces.

CS0246.NET

error CS0246: The type or namespace name 'X' could not be found (are you missing a using directive or an assembly reference?)

The compiler doesn’t know the type — missing using, missing NuGet package/project reference, or a target framework mismatch.

CS1061.NET

error CS1061: 'X' does not contain a definition for 'Y' and no accessible extension method 'Y' accepting a first argument of type 'X' could be found

The member you call doesn’t exist on that type — typo, wrong type, missing using for an extension method, or an API removed in a…

CS8618.NET

warning CS8618: Non-nullable property 'X' must contain a non-null value when exiting constructor. Consider declaring the property as nullable

With nullable reference types enabled, a non-nullable reference property isn’t initialised by the constructor.

ImportErrorPython

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.

KeyErrorPython

KeyError: 'x'

You accessed a dictionary key that doesn’t exist.

TypeError: NoneTypePython

TypeError: 'NoneType' object is not subscriptable

You used `[ ]` on a value that is `None` — typically a function that returned nothing.

403HTTP

HTTP 403 Forbidden

The server understood the request but refuses to authorize it — you (or the server process) are not allowed to access this resour…

invalid_grantAuthentication

OAuth 2.0 Error: invalid_grant

The authorization code, refresh token or credentials sent to the token endpoint are invalid, expired, already used or were issued…

redirect_uri_mismatchAuthentication

OAuth Error: redirect_uri_mismatch

The redirect URI in your OAuth request doesn’t exactly match one registered for the client in the provider’s console.

invalid_scopeAuthentication

OAuth 2.0 Error: invalid_scope / insufficient_scope

The requested scope is unknown or not allowed for this client — or the token lacks the scope the API endpoint requires.

Access blocked: has not completed the Google verification processAuthentication

Google OAuth: Error 403: access_denied — The developer hasn't given you access to this app / has not completed the Google verification process

The Google OAuth app is in “Testing” publishing status and the signing-in account isn’t listed as a test user.

Google hasn't verified this appAuthentication

Google OAuth: Google hasn't verified this app / This app isn't verified

The OAuth app requests sensitive or restricted scopes and hasn’t passed Google’s verification, so users see a warning screen.

AADSTS70011Authentication

AADSTS70011: The provided request must include a 'scope' input parameter / provided value for scope is not valid

The scope in the token request is missing, malformed or not valid for the resource.

invalid_authAPI

Slack API: {"ok":false,"error":"invalid_auth"}

The Slack token is invalid, revoked or sent in the wrong way.

channel_not_foundAPI

Slack API: channel_not_found / not_in_channel

The bot cannot see or post in that channel — wrong ID, private channel, or the bot is not a member.