Unable to login to hub from a Grdaio space
I’ve built a Gradio space that requires a hub login. I defined a secret for the login and it worked great, but today I’m getting an error while login in to the hub. Tried some workarounds, but nothing works. When using the same access token not in the space, there is no problem with the login.This is the error I’m getting:File "/home/user/app/src/few_shot_funcs.py", line 17, in <module>
    login(os.environ.get('HUB_KEY'))
  File "/home/user/.local/lib/python3.10/site-packages/huggingface_hub/_login.py", line 108, in login
    _login(token, add_to_git_credential=add_to_git_credential, write_permission=write_permission)
  File "/home/user/.local/lib/python3.10/site-packages/huggingface_hub/_login.py", line 279, in _login
    permission = get_token_permission(token)
  File "/home/user/.local/lib/python3.10/site-packages/huggingface_hub/REDACTED_TOKEN.py", line 1173, in get_token_permission
    return self.whoami(token=token)["auth"]["accessToken"]["role"]
  File "/home/user/.local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
    return fn(*args, **kwargs)
  File "/home/user/.local/lib/python3.10/site-packages/huggingface_hub/REDACTED_TOKEN.py", line 1138, in whoami
    r = get_session().get(
  File "/home/user/.local/lib/python3.10/site-packages/requests/sessions.py", line 602, in get
    return self.request("GET", url, **kwargs)
  File "/home/user/.local/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/user/.local/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/home/user/.local/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 63, in send
    return super().send(request, *args, **kwargs)
  File "/home/user/.local/lib/python3.10/site-packages/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: (MaxRetryError('HTTPSConnectionPool(host=\'huggingface.co\', port=443): Max retries exceeded with url: /api/whoami-v2 (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f5dada20580>: Failed to resolve \'huggingface.co\' ([Errno -3] Temporary failure in name resolution)"))'), '(Request ID: 58bab764-748a-4cdd-84a1-d6f26e17596e)')```