Errors and Troubleshooting
Common Errors
| Code | Status | Information | Additional Context |
|---|---|---|---|
| E011001 | 400 | Request is malformed | The request contains invalid or malformed data. Common causes include: received tenant from query param that does not match any pattern (tenant not found, check if tenant exists and name is spelled correctly), or SSO not supported for domain (user tried to log in with SSO, but there is no tenant with the email domain associated with the user). |
| E061102 | 401 | One time code is invalid | The provided one-time code is invalid. Note that you can change the number of attempts in the authentication method settings. |
| E102116 | 500 | Invalid task ID: Execute next direct workflow failed. Failed to get execution info | During flow execution, the next flow step was not found. Ensure that the steps are connected throughout the flow and all the way to the end step. |
| E103205 | 400 | Did not find execution context: Flow timed out, please try to refresh | The Descope flow component has been idling for too long. Refreshing the component will create a new flow execution. |
| E062504 | 401 | Token expired: Failed to load magic link token | Descope couldn't find the magic link token. The link has expired or was already used. Email security scanners, such as Outlook Safe Links, can open the link before the user does and use it up. The user needs to start sign-in again to get a new link. If scanners are using up your links, see Checking for Email Scanners. |
| E063010 | 401 | Failed loading magic/enchanted link from cache, was not found, might be expired | The magic link has expired. The user will need to restart the authentication process to receive a fresh magic link token. |
| E011003 | 400 | Request is invalid | A field in the request failed input validation. The text after the message names the field and the rule it broke, such as The [NAME] field is required. Common cases:- A required field is missing. - A PKCE verifier or challenge isn't exactly 32 bytes. - A redirect URL is longer than 2048 characters. - An OTP code isn't exactly 6 characters. - An email domain isn't valid ( The email field must have a valid domain name). Examples are an empty label (user@café..be), a label that starts with a hyphen, or a space in the domain.Fix the field named in the message and send the request again. |
| E061104 | 401 | One time code expired | The one-time code has expired. The user needs to restart the authentication or resend the OTP code to receive a valid new code. |
| E062503 | 401 | Token not verified: Unauthorized enchanted link status - token was not verified yet | The enchanted link has expired. The user needs to restart the authentication process to receive a fresh enchanted link token. |
| E062115 | 401 | Attempt to login with unverified email or phone | The user tried to sign in with an email or phone number that isn't verified. The end of the message says which one: Unverified email or Unverified phone. The user must verify it before signing in with that method. For users you create with the Management API or SDK, set verifiedEmail or verifiedPhone to true (see Users with SDKs). |
| E062108 | 404 | User not found | User was not found in Descope. Descope uses LoginId to identify the user, make sure that the right loginId is used for the specific step or SDK. This error can occur during general user lookup, OAuth token exchange, magic link sign-in, or NOTP sign-in verification. Verify that the user exists or switch to signing the user up if applicable. |
| E062904 | 400 | Password does not satisfy policy | User did not comply with the password policy when setting their password. Common violations include: missing non-alphanumeric characters, uppercase characters, lowercase characters, numbers, or minimum length requirements. It is recommended to use the policy previewer component so that the user will be able to see why the password was rejected. |
| E064002 | 401 | Empty or Non Existent Refresh Token JWT was provided | Token is missing. When using a custom domain check whether DS/DSR (or your custom-configured cookie names) are absent from the localStorage or the cookie. |
| E062901 | 401 | Invalid signin credentials | One of the provided credentials is wrong, used for password authentication. May include attempt count in the error message. |
| E069000 | 401 | PKCE Validation Failed: Failed to verify link - PKCE Validation Failed: PKCE challenge and verifier do not match | PKCE already used, or the challenge and the verifier do not match. Validate that the PKCE is being used for the first time, or that it is being created and passed properly. |
| E061301 | 401 | Failed to exchange token: Failed to exchange sso code | Wrong or missing SSO code for exchange. |
| E062209 | 401 | Token exchange with OAuth provider failed, please validate your OAuth setup: [E062108] User not found: User does not exists [error: [E013009]] | For signing in with OAuth, the user must exist first in the Descope user table.Check that the user exists or have the user sign up. |
| E061103 | 401 | Max attempts exceeded for one time code | User has reached the maximum attempts verifying the log in with the OTP. This may be an attempt to break into the account. |
| E071001 | 401 | Project does not exist | The Descope Project ID is invalid/does not exist. Verify that it has been entered correctly. |
| E102111 | 400 | Flow reached limit of allowed tasks | The amount of tasks executed exceeded 1000. Check your flow for infinite loops. |
| E102103 | 400 | Did not find next task: Could not get next task for [NAME] | During flow execution, the next flow step was not found. Ensure that the steps are connected throughout the flow and all the way to the end step.. |
| E061002 | 403 | Sign up is not allowed: Self provisioning signUp is not allowed | Sign ups are not allowed. This may be a result of checking the “Block self-registration sign up” in the project settings page. |
| E033005 | 429 | Rate limit exceeded: Exceeded the allowed number of emails in a the defined time frame. Please wait a while and try again | User actions triggered several email messages which exceeded the limit. It is recommended to check the flow and the user actions to find a way to prevent this from happening again. |
| E125004 | 500 | Connector execution runtime error | The connector ran but returned an error. The text after the message shows the connector's own error. Common cases: - getaddrinfo ENOTFOUND: The connector's host name can't be found. Check the URL in the connector settings and your network. If both look correct, contact Descope support.- Task timed out after x seconds: The destination took too long to respond. Increase the Timeout in the connector step, or check the destination server. See Long-Running Connector Calls.To see the request and response, run the flow in the Flow Runner. |
| E064003 | 401 | Invalid Refresh Token JWT was provided: Failed to load user | User’s JWT provided did not find any existing users in the project. Please make sure you are using the right project. |
| E013009 | 404 | Record not found | Descope couldn't find a record that the request refers to. The text after the code names the record, such as Connector not found or Flow <id> not found.- Connector not found: A flow step uses a connector that was deleted, or that doesn't exist in this project, for example after you import a flow from another project. Open the flow, check which connector the step uses, and create or reselect it under Connectors. - Flow not found: Check the flow ID in your SDK or component call. - Inside another error, such as E062108: Fix the outer error. E013009 is the lookup that failed underneath it. |
| E062903 | 401 | Password signin failed | Wrong password provided. |
| E023001 | 401 | User is disabled | User is disabled. Enable the user through the UI or API. You can also alert your users when they are disabled and provide them an option to contact support. |
| E067010 | 401 | User doesn't have any WebAuthn credentials | The user tried to sign-in with passkeys, and does not have a passkey set on the device. See the ‘promote-biometrics’ flow as an example of how to set up a passkey. |
| E062910 | 400 | Password cannot be reused [error: rpc error: code = Unknown desc = [E062910] Password cannot be reused] | User tried to set a password that has been used before. You can control the number of passwords that Descope checks against, by going into the password authentication method settings. |
| E106003 | 401 | Could not find tenant: Cannot determine tenant from JWT | Happens when performing an authorized action and the tenant is required for performing the action. |
| E031002 | 403 | Missing providers Settings | The provider specified in the flow is missing (probably deleted). |
| E011004 | 400 | Invalid Arguments | The arguments passed to the API/SDK call are invalid. |
| E067015 | 404 | Login transaction not found | The passkey operation timed out |
| E067020 | 400 | Android APK key hash origin is not in the allowed list | The Android app's signing fingerprint is not listed under Passkeys Settings > Android Fingerprints. Add a fingerprint for every signing key in use, including debug and Play App Signing keys. |
| E073307 | 400 | Failed to save tenant, tenant ID or Name already exist: Failed creating tenant because provisioning domains are duplicate | The tenant already exists. Happens when self-provisioning is used inside a flow or the requested tenant has the same email domain. |
| E106004 | 401 | Could not find tenant: Illegal tenant requested | The name of the tenant does not exist in Descope. |
| E032101 | 400 | Failed to send sms: Status: 429 - Max send attempts reached | The maximum number of attempts to send an SMS to a specific number has been reached. |
| E062605 | 401 | Token exchange with SSO provider failed | SSO token exchange failed. Common causes include: cannot generate redirect URI (redirect URI is not configured or is missing from metadata on the IDP, make sure all URLs are set correctly on the IDP), or user is disabled in Descope (enable the user through the user table). |
| E062907 | 401 | Password reset send failed | This can be a result of wrong email provider settings. Check the relevant connector. |
| E102112 | 500 | Invalid execution id | Flow execution ID not found. Restart the flow to create a new ID. |
| E112201 | 400 | Tenant does not belong to the specified project | The tenant does not belong to the specified project. The tenant ID is case sensitive, so ensure that the tenant ID is cased correctly. |
| E023009 | 401 | Cannot merge with test user: Cannot merge with test user | Test users are not permitted. |
| E062906 | 401 | Password update failed | Updating the password failed. |
| E062111 | 401 | JWT invalid for update user flow - JWT does not match user | The JWT provided does not match the user. |
| E102004 | 404 | Flow requested is in old version, need to reload page: Got wrong version after reload | Flow has changed, refresh the page to get a newer flow version. |
| E011002 | 400 | Request is missing required arguments | The request has a missing or invalid argument that does not comply with the field’s format. Make sure to provide that field or check the validity of the field. |
| E103003 | 500 | Failed getting flow: Failed loading flow by ID | Flow ID was not found on the project. Make sure you have the right flow ID or that you are using the right project ID. |
| E102001 | 404 | Unknown flow | Returned by POST /v1/flow/start when the request doesn't include componentsVersion, even if the flow exists, is active, and the project ID and flow ID are correct. This happens when you call flow.start yourself, for example sdk.flow.start('sign-up-or-in') from the web JS SDK, instead of running the flow through the Descope web component. The web component reads componentsVersion and the flow versions from the project's config.json and sends them for you.To fix it, run the flow through the Descope web component, or include componentsVersion in the flow start request, taken from the project's config.json. Sending only flowVersions isn't enough. If the flow ID is wrong, you get E103003 instead. |
| E032001 | 400 | Failed to send email: Failed to send email through SES (MessageRejected): Email address is not verified | SES requires the sender email to be verified on AWS. Make sure you follow the steps to verify it. |
| E032106 | 400 | Invalid Phone number provided to phone SMS: Failed to send SMS - Invalid Phone To +xx-xxxxxx | The phone number provided does not comply with the phone number format. |
| E064011 | 401 | JWT inactive for too long: Failed getting tenants from JWT. | The operation requires a specific tenant to work. The JWT contains either no tenant or multiple tenants. |
| E064017 | 401 | Provided token is not an ID token | The id_token_hint sent to the OIDC logout endpoint is not an ID token, typically because the app sent the access token. Pass the ID token instead. |
| E011016 (formerly E061003) | 403 | Redirect URL does not match the approved domain list | The redirect URL's domain isn't in the project's Approved Domains. This can happen after you change a custom domain. Add the domain to Approved Domains in the project settings. For SSO applications, see E061016 in SSO Troubleshooting. |
| E061010 | 401 | Your company account is no longer active. Please contact support for assistance | This error occurs when attempting to access a company that has been deleted or disabled. The account is no longer accessible. Contact Descope support if you believe this is an error. |
| E062208 | 500 | Failed to create user from mapping, external ID does not exist | When trying to merge identities from SSO / OAuth in a sign in process, there is no existing user with the associated ID (e-mail or phone number). |
| E062107 | 400 | User already exists in SignUp. | User with the provider login ID already exists, use sign in or sign up / in instead. |
| E103202 | 400 | Polling status not found. | Magic Link / Enchanted Link reference not found, it is probably expired by time or already clicked on. Try sending it again. |
| E061206 | 400 | Missing redirect URL for IdP initiated login. | SSO IdP Initiated request while post authentication URL is not configured. Set the Post Authentication Redirect URL — see SSO login flows → IdP-initiated. |
| E023019 | 403 | Number of test users exceeded. | Number of available test users depends on your company license. |
| E061105 | 401 | TOTP code already used | The submitted TOTP (authenticator app) code was already used earlier in its validity window and was rejected as a replay. Ask the user to wait for their authenticator app to generate a new code. |
| E111127 | 409 | Failed to update user because the new value already belongs to another user | Returned by Update User Email and Update User Phone when failOnConflict is true and the new email or phone already belongs to a different user. The update fails instead of merging the two accounts — retry with a different value, or omit failOnConflict to merge the conflicting user into this one. |
| E062125 | 400 | User update failed due to conflict with existing user | The auth-flow equivalent of E111127 (e.g. during magic link or OTP sign-in) — the identifier being verified already belongs to a different user and failOnConflict prevented the merge. |
| E064001 | 401 | JWT Expired due to logout | The refresh token belongs to a session that signed out. After logout, Descope rejects that session's refresh token. The user needs to sign in again, and your app should stop using the old tokens. |
| E064005 | 401 | JWT already rotated, JWT family will be invalidated | With refresh token rotation on, each refresh token works once. Descope received a refresh token that was already used, so it invalidates every token in that family and the user needs to sign in again. A common cause is two refreshes at the same time, for example from two tabs or a retry, where the second uses the token that the first just replaced. Make sure your app runs one refresh at a time. |
| E064006 | 401 | JWT family ID invalidated, cannot use this token | The token belongs to a family that Descope invalidated after E064005. No token in that family works anymore. The user needs to sign in again to get a new session. See refresh token rotation. |
| E064010 | 401 | No user to impersonate to | The target user is disabled or expired, or the user cannot be loaded. You cannot impersonate disabled or expired users. See User Impersonation. |
| E064009 | 401 | No consent for impersonation | The target user has not given impersonation consent. See User Impersonation. |
| E062018 | 401 | Invalid JWT provided for stop impersonation | The JWT passed to stop impersonation is invalid. See User Impersonation. |
| E108201 | 403 | Error validating flow nonce | The flow request arrived out of sequence because it reused an old flow state. This can happen with a second tab, the browser back button, or an old link. The user needs to start the flow again. |
| E108202 | 403 | Flow is running from a non-approved domain | The flow runs on a domain that isn't in the project's Approved Domains. This can happen after you change a custom domain. Add the domain to Approved Domains in the project settings. |
| E108204 | 403 | Redirect auth callback is not an approved domain | A mobile app opened a flow step in the system browser, and the callback URL that returns the user to the app isn't in the project's Approved Domains. Add the mobile callback URL: the full URL with the scheme for a custom scheme (e.g., descopeauth://flow for the React Native and Flutter SDKs on iOS), or the domain alone for an https URL. |
| E102121 | 400 | Failed to get last screen | Descope couldn't restore the flow's last screen when the flow resumed, because the flow's saved state was empty or had expired. This can happen when a mobile SDK resumes a flow. The user needs to start the flow again. |
| E061001 | 403 | Authentication method disabled | An API or SDK call uses an authentication method that is turned off in the project. Turn the method on in the console, or use a method that is on. |
| E130429 | 429 | Rate limit exceeded | Descope received too many requests in a short time. A common source is Management API calls from CI or Terraform runs. Wait before you retry, and spread out the calls. See Rate Limit Best Practices. |
| E068003 | 401 | Failed to handle IDP SAML authentication request | Descope acts as the identity provider for a SAML or WS-Fed application and couldn't handle the request from the service provider. The text after the message names the problem, such as missing SAMLRequest field or SAML ACS URL fails strict authority match. Check that the service provider's settings match the application's settings in Descope. |
| E073108 | 500 | Invalid private key | Descope couldn't read a private key. For Apple sign-in, empty block after decoding means the private key isn't a valid .p8 key. Provide the .p8 key file you downloaded from Apple again. |
| E032043 | 500 | Failed to init AWS End User Messaging client | Descope couldn't connect to AWS End User Messaging. The text after the message says which step failed. - Failed to assume external customer role: Descope couldn't use the role set under Role-based Permissions in the connector. Check the role in the connector settings and in AWS.- AWS End User Messaging service role is not configured: This setting is on the Descope side. Contact Descope support. |
The status shown is the usual HTTP status for each code. A code can return a different status when it wraps another error, such as 500 for an internal failure.
OAuth and OIDC Errors
These errors might indicate a misconfiguration on both sides, in Descope or at the OAuth provider. Here is a list of all of the errors that might occur when Descope exchanges a token with an OAuth provider. The message usually starts with Token exchange with OAuth provider failed, please validate your OAuth setup (E062209). To further debug provider-related issues, read the documentation that is associated with the error message and the specific OAuth provider used.
| Information | Additional Context |
|---|---|
| Failed to connect to user info endpoint | Either the user endpoint cannot be reached or does not return a valid JSON. |
| This OAuth Provider is not enabled, need to allow in project settings first | The provider that was used in the flow is not enabled. |
| The user has denied access to the scope requested by the client application | The user has declined the access request of the app. |
| Disabled user in oauth exchange | The user is disabled in Descope. |
| User already exists: User already exists | The user already exists and sign up is rejected. Use sign in instead. |
| User not found: User does not exist | The user must exist first in the Descope user table. Check that the user exists or have the user sign up. |
| Request is missing required arguments | The provided e-mail address does not comply with the e-mail format. |
Note
Are you facing an error that is not listed here? Please contact us, and we will make sure to list it.
Was this helpful?