Error map

user_loader Exception: Missing user_loader or request_loader (Flask-Login)

Authentication · layer 4, Application & API

Open the full error page →

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

user_loader — Exception: Missing user_loader or request_loader (Flask-Login) (Authentication)user_loaderIllegal arguments: undefined, string — bcrypt error: Illegal arguments: undefined, string / data and salt arguments required / data and hash arguments required (Authentication)Illegal arguments: …NotAuthorizedException — AWS Cognito: NotAuthorizedException: Incorrect username or password (Authentication)NotAuthorizedExcept…Flask app context — RuntimeError: Working outside of application context. (Python)Flask app contextFailed to serialize user into session — Passport.js: Error: Failed to serialize user into session (Authentication)Failed to serialize…account locked — Your account has been locked due to too many failed login attempts (Authentication)account lockedMissing Authorization Header — Flask-JWT-Extended: {"msg":"Missing Authorization Header"} (Authentication)Missing Authorizati…no secret key — RuntimeError: The session is unavailable because no secret key was set (Authentication)no secret keyE0000004 — Okta: E0000004 Authentication failed (Authentication)E0000004No active account found — {"detail":"No active account found with the given credentials"} (Authentication)No active account f…parameter_missing — API Error: Missing required parameter (parameter_missing / "x" is required) (API)parameter_missingAADSTS50055 — AADSTS50055: The password is expired (Azure)AADSTS50055invalid two-factor code — Two-factor (TOTP) code invalid / Invalid verification code (authenticator app time drift) (Authentication)invalid two-factor …publickey — Git: Permission denied (publickey). fatal: Could not read from remote repository. (Git)publickeyAADSTS700016 — Azure AD (Entra ID): AADSTS700016 Application not found in the directory (Azure)AADSTS700016401 — HTTP 401 Unauthorized (HTTP)401AttributeError — AttributeError: 'X' object has no attribute 'y' (Python)AttributeErrorConnectionRefusedError — ConnectionRefusedError: [Errno 111] Connection refused (Python)ConnectionRefusedEr…Event loop is closed — RuntimeError: Event loop is closed (Python)Event loop is closedExpiredToken — AWS: ExpiredToken — The security token included in the request is expired (AWS)ExpiredTokensession_start() — Warning: session_start(): Session cannot be started after headers have already been sent (PHP)session_start()Session has not been configured — InvalidOperationException: Session has not been configured for this application or request (.NET)Session has not bee…Callback URL mismatch — Auth0: Callback URL mismatch. The provided redirect_uri is not in the list of allowed callback URLs (Authentication)Callback URL mismat…Invalid state — Auth0: Invalid state — login callback state does not match (Authentication)Invalid statelogin_required — Auth0: login_required — Login required (silent authentication failed) (Authentication)login_requiredTokenExpiredError — JWT Expired / Invalid Token (Authentication)TokenExpiredErrorinvalid_token — invalid_token: The access token is invalid (JsonWebTokenError: invalid signature / jwt malformed) (Authentication)invalid_tokenjwt must be provided — JsonWebTokenError: jwt must be provided (Authentication)jwt must be providedNO_SECRET — NextAuth / Auth.js: [next-auth][error][NO_SECRET] Please define a `secret` in production / MissingSecret (Authentication)NO_SECRET440 — HTTP 440 Login Time-out (IIS) (HTTP)440authorization_request_not_found — [authorization_request_not_found] Spring OAuth2 login callback (Authentication)authorization_reque…redirect_uri must be a Login redirect URI — Okta: The 'redirect_uri' parameter must be a Login redirect URI in the client app settings (Authentication)redirect_uri must b…E0000011 — Okta: E0000011 Invalid token provided (Authentication)E0000011invalid_client — Sign in with Apple: invalid_client (Authentication)invalid_clientUnable to verify secret hash for client — AWS Cognito: NotAuthorizedException: Unable to verify secret hash for client x (Authentication)Unable to verify se…Bad credentials — Spring Security: BadCredentialsException: Bad credentials (Authentication)Bad credentialscredentials were not provided — Authentication credentials were not provided (Django REST Framework 401/403) (Authentication)credentials were no…

Directly related (9)

Illegal arguments: undefined, stringAuthentication

bcrypt error: Illegal arguments: undefined, string / data and salt arguments required / data and hash arguments required

bcrypt.compare/hash received undefined — the password field or stored hash wasn’t passed.

NotAuthorizedExceptionAuthentication

AWS Cognito: NotAuthorizedException: Incorrect username or password

Cognito rejected the sign-in — wrong credentials, a disabled user, an auth flow not enabled on the app client, or an expired refr…

Flask app contextPython

RuntimeError: Working outside of application context.

Code used current_app, g, or a Flask extension (like SQLAlchemy) without an active Flask application context.

Failed to serialize user into sessionAuthentication

Passport.js: Error: Failed to serialize user into session

Passport logged a user in but there’s no serializeUser function (or it didn’t call done), so the session can’t store the user.

account lockedAuthentication

Your account has been locked due to too many failed login attempts

The login system locked the account after repeated failures.

Missing Authorization HeaderAuthentication

Flask-JWT-Extended: {"msg":"Missing Authorization Header"}

A route decorated with `@jwt_required()` was called without an Authorization header.

no secret keyAuthentication

RuntimeError: The session is unavailable because no secret key was set

Flask cannot sign the session cookie because `app.secret_key` is not configured.

E0000004Authentication

Okta: E0000004 Authentication failed

Okta could not authenticate the username and password for the primary authentication API.

No active account foundAuthentication

{"detail":"No active account found with the given credentials"}

Simple JWT's login endpoint did not find an active user matching the username and password.

Two steps away (27)

parameter_missingAPI

API Error: Missing required parameter (parameter_missing / "x" is required)

The API rejected the request because a field it requires — in the query string, path, headers or JSON body — wasn’t sent or was e…

AADSTS50055Azure

AADSTS50055: The password is expired

The user’s password expired under the tenant/on-prem password policy and must be changed before signing in.

invalid two-factor codeAuthentication

Two-factor (TOTP) code invalid / Invalid verification code (authenticator app time drift)

The 6-digit authenticator code is rejected — usually because the phone’s or server’s clock is off, or the secret was enrolled twi…

publickeyGit

Git: Permission denied (publickey). fatal: Could not read from remote repository.

SSH authentication to GitHub/GitLab/Bitbucket failed — no key, wrong key, or the key isn’t added to your account.

AADSTS700016Azure

Azure AD (Entra ID): AADSTS700016 Application not found in the directory

The client ID in your sign-in request doesn’t exist in the tenant you’re authenticating against.

401HTTP

HTTP 401 Unauthorized

The request has no valid authentication credentials — you need to log in or send a valid token.

AttributeErrorPython

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

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

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.

ExpiredTokenAWS

AWS: ExpiredToken — The security token included in the request is expired

Temporary AWS credentials (STS/SSO/assumed role) have expired.

session_start()PHP

Warning: session_start(): Session cannot be started after headers have already been sent

session_start() ran after output was sent, so PHP can’t set the session cookie.

Session has not been configured.NET

InvalidOperationException: Session has not been configured for this application or request

Code used HttpContext.Session, but session services/middleware aren’t registered — or UseSession runs after the endpoint that nee…

Callback URL mismatchAuthentication

Auth0: Callback URL mismatch. The provided redirect_uri is not in the list of allowed callback URLs

The redirect_uri in the login request is not listed in the Auth0 application's Allowed Callback URLs.

Invalid stateAuthentication

Auth0: Invalid state — login callback state does not match

The `state` returned to the app does not match the one the SPA stored before redirecting to Auth0.

login_requiredAuthentication

Auth0: login_required — Login required (silent authentication failed)

A silent token request found no active Auth0 session, so the user must log in interactively.

TokenExpiredErrorAuthentication

JWT Expired / Invalid Token

The JSON Web Token sent with the request is expired, malformed or signed with a different key, so the API rejects it (usually wit…

invalid_tokenAuthentication

invalid_token: The access token is invalid (JsonWebTokenError: invalid signature / jwt malformed)

A token was sent but the server couldn’t verify it — bad signature, malformed, revoked, or issued for another audience or environ…

jwt must be providedAuthentication

JsonWebTokenError: jwt must be provided

jwt.verify() was called with an empty value — the token never reached the server code.

NO_SECRETAuthentication

NextAuth / Auth.js: [next-auth][error][NO_SECRET] Please define a `secret` in production / MissingSecret

Auth.js needs a secret (NEXTAUTH_SECRET / AUTH_SECRET) in production to sign and encrypt tokens/cookies.

440HTTP

HTTP 440 Login Time-out (IIS)

Microsoft IIS reports that the client's session has expired and a new login is needed.

authorization_request_not_foundAuthentication

[authorization_request_not_found] Spring OAuth2 login callback

Spring could not find the saved authorisation request when the provider redirected back, so the login cannot be completed.

redirect_uri must be a Login redirect URIAuthentication

Okta: The 'redirect_uri' parameter must be a Login redirect URI in the client app settings

Okta rejected the login because the redirect URI is not registered in the application's sign-in redirect URIs.

E0000011Authentication

Okta: E0000011 Invalid token provided

The Okta API call used an expired, revoked or malformed token.

invalid_clientAuthentication

Sign in with Apple: invalid_client

Apple rejected the client secret JWT or the Services ID configuration.

Unable to verify secret hash for clientAuthentication

AWS Cognito: NotAuthorizedException: Unable to verify secret hash for client x

The app client has a client secret, so every request needs a SECRET_HASH — and it’s missing or computed wrongly.

Bad credentialsAuthentication

Spring Security: BadCredentialsException: Bad credentials

Spring Security found the user but the supplied password did not match the stored hash, or the user was not found.

credentials were not providedAuthentication

Authentication credentials were not provided (Django REST Framework 401/403)

DRF requires authentication on this view but the request carried no usable credentials.