Error map
user_loader Exception: Missing user_loader or request_loader (Flask-Login)
Authentication · layer 4, Application & API
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.
Directly related (9)
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.
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…
RuntimeError: Working outside of application context.
Code used current_app, g, or a Flask extension (like SQLAlchemy) without an active Flask application context.
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.
Your account has been locked due to too many failed login attempts
The login system locked the account after repeated failures.
Flask-JWT-Extended: {"msg":"Missing Authorization Header"}
A route decorated with `@jwt_required()` was called without an Authorization header.
RuntimeError: The session is unavailable because no secret key was set
Flask cannot sign the session cookie because `app.secret_key` is not configured.
Okta: E0000004 Authentication failed
Okta could not authenticate the username and password for the primary authentication API.
{"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)
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…
AADSTS50055: The password is expired
The user’s password expired under the tenant/on-prem password policy and must be changed before signing in.
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…
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.
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.
HTTP 401 Unauthorized
The request has no valid authentication credentials — you need to log in or send a valid token.
AttributeError: 'X' object has no attribute 'y'
You accessed an attribute or method that doesn’t exist on that object type.
ConnectionRefusedError: [Errno 111] Connection refused
Nothing is listening on the host/port Python tried to connect to.
RuntimeError: Event loop is closed
Async code tried to use an event loop that has already been shut down.
AWS: ExpiredToken — The security token included in the request is expired
Temporary AWS credentials (STS/SSO/assumed role) have expired.
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.
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…
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.
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.
Auth0: login_required — Login required (silent authentication failed)
A silent token request found no active Auth0 session, so the user must log in interactively.
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_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…
JsonWebTokenError: jwt must be provided
jwt.verify() was called with an empty value — the token never reached the server code.
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.
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_found] Spring OAuth2 login callback
Spring could not find the saved authorisation request when the provider redirected back, so the login cannot be completed.
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.
Okta: E0000011 Invalid token provided
The Okta API call used an expired, revoked or malformed token.
Sign in with Apple: invalid_client
Apple rejected the client secret JWT or the Services ID configuration.
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.
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.
Authentication credentials were not provided (Django REST Framework 401/403)
DRF requires authentication on this view but the request carried no usable credentials.