Magic
English
Go to website
Back
Articles on:
Troubleshooting Errors
Get help with the most common errors
Service Error: REQUEST_NOT_AUTHORIZED_FOR_ADMIN_AUTH
An error in the console that reads REQUEST_NOT_AUTHORIZED_FOR_ADMIN_AUTH would indicate mismatched API keys. Steps to resolve: Confirm that the backend Magic instance is being created with a secret
Few readers
Domain mismatched error
If you're seeing an error like the one below, double check that the Redirect URI you're passing to loginWithMagicLink() has the same domain as your app or website. The redirectURI must have the same base domain as the URL that the request came from (meaning, a user logging into website.com cannot be redirected to website2.com). For more information on how to use Magic with a Redirect URI, check out our [documentation](https://magic.link/docs/api-reference/client-side-sdks/web#loginwithmagi
Few readers
Error from auth_relayer/UNABLE_TO_REFRESH_SESSION
Seeing this error in your console? This can be expected. Sometimes Magic will make a call to our backend to see if a user is already logged in, even when they are not expected to be logged in. If you're not experiencing any blocke
Few readers
I see console errors after a user triggers `loginWithMagicLink`
Seeing an api call to api.magic.link/v1/auth/user/login/email/status throwing a 401 error in your console? You can ignore this! After the user triggers a login attempt, a poller begins to run in the background, checking to see if the user has clicked the Magic link that was sent to them. You can also ignore anything coming from Rollbar's API, which is a service we use for internal tracking of sdk errors.  What browser are you using? Which extensions are enabled? Are
Few readers
Webcrypto Error
Magic's sdk uses a package called webcrypto, which will occasionally throw an error like this: This shouldn't affect your app's performance or the login flow at all and can be ignored. If you're experiencing any blockers in addition to the webcrypto error, please let us know and we're happy to help out.
Few readers
I see a 429 error in the developer console
If you see a POST request to https://api.rollbar.com/api/1/item/ throwing a 429 error in your console, you can ignore it! We use Rollbar internally to track sdk errors. ignorable 429 and 401 errors in the console
Few readers
App Error: Given app domain and redirect domain mismatched (Magic Dashboard)
If you're seeing this error when using Firefox to access the Magic Dashboard, try using a different browser. If the error persists, reach out to us!
Few readers