Skip to content
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

URLError Prevents Server Start Due to Network Failure when Fetching JWKS #44

Open
OfficialAshish opened this issue Nov 7, 2024 · 1 comment

Comments

@OfficialAshish
Copy link

When the server cannot connect to the internet, the code fails to fetch the JWKS (JSON Web Key Set) from Auth0, and it raises a URLError with the message <urlopen error [Errno 11001] getaddrinfo failed>. This error prevents the server from starting up, making it impossible to run the application when the network is unavailable or DNS resolution fails.
When this network issue occurs, it results in an unhandled exception, causing the server startup to fail completely.

image

@spawn-guy
Copy link

spawn-guy commented Nov 13, 2024

will you be so kind to test if this happens with this version of code? #43 i might fix this for PyJWT as the json file is injected in a different way from jose.

also.. what would be the default behaviour when there is no "open" internet on the server and there is a "local" client requesting something with some token? Unauthorized or some other error? it should fail with Auth0UnauthenticatedException

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants