New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error handling is unclear - client.login returns wrapped error object #540
Comments
in Chrome this is intermittent , in Safari it is always an issue basically getting stuck in an infinite login loop. |
ok, debugging the source leads to this for me...
The actual error is: So I did the following in the Safari console:
and got I would take a wild guess that the issue is because the site is running off of I will debug deeper |
something with superagent....
when i try to explicitly set the request headers ( even though it's a GET request ):
I get:
|
i guess it's one of these issues.... so doing this work:
so pre-fetchign the file beforehand makes superagent work. |
Since you can reproduce in your machine, can you get me a .HAR file of the failed request? I'll send this to our infra team. https://auth0.com/docs/support/troubleshooting-with-har-files |
@luisrudge unfortunately stupid Safari does not have the capability to export HARs... 👎 I will try to catch this case in Chrome again and get the HAR. For Safari I captured screenshots of the broken and working request details, they look very different... |
@luisrudge I believe i figured the issue... it was a combination of things. since I was working off of my dev box i dont use https, so in the jwks.js file I have forced the well kmnown hosts url to be non When that been resolved, I noticed that the intermittent issue that I was talking about earlier in Chrome, actually was about the
Though, @luisrudge going through the code I have a question.
As I am reading this, Thanks |
You can set the namespace and keyLenght, but you can't set the actual transaction. We manage all the steps of the transaction: https://github.com/auth0/auth0.js/blob/master/src/web-auth/transaction-manager.js#L6 Since yours is a different issue than the original one, please open a new issue with the proper steps to reproduce the error and a code snippet so I can understand how are you using the SDK. |
@panigrah I just tested this and you're right. The real issue here is that we can't not for sure if it's a connectivity issue (offline) or a CORS issue. I know it sucks, but the workaround here is to check for the property |
Hi,
I am unable to identify the error appropriately when the network connection is down and the auth0 services are not available.
This is my code.
This is the error when I print the error
There is no error code or description. How do I cleanly catch this and other errors that may not be authentication errors?
thanks
The text was updated successfully, but these errors were encountered: