I’m trying to integrate a fastapi python server with auth0.
Although while setting up I’m getting this particular error for this line of code
jsonurl = urlopen("https://" + AUTH0_DOMAIN + "/.well-known/jwks.json")
Error:
> File "./app/auth0.py", line 29, in get_current_user
> jsonurl = urlopen("https://" + AUTH0_DOMAIN + "/.well-known/jwks.json")
> File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 222, in urlopen
> return opener.open(url, data, timeout)
> File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 525, in open
> response = self._open(req, data)
> File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 542, in _open
> result = self._call_chain(self.handle_open, protocol, protocol +
> File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 502, in _call_chain
> result = func(*args)
> File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 1362, in https_open
> return self.do_open(http.client.HTTPSConnection, req,
> File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 1322, in do_open
> raise URLError(err)
> urllib.error.URLError: <urlopen error [Errno 8] nodename nor servname provided, or not known>
Please help identify this error. Thank you.