Hugging Face's logo
Andhie
/
Runtime error

runtime error

ceback (most recent call last): File "/home/user/app/app.py", line 6, in <module> login(token=os.environ['HF_TOKEN']) File "/home/user/.local/lib/python3.10/site-packages/huggingface_hub/_login.py", line 109, 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 303, in _login permission = get_token_permission(token) File "/home/user/.local/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 1336, 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/hf_api.py", line 1301, 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 67, 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 0x7f81c2d1f820>: Failed to resolve \'huggingface.co\' ([Errno -3] Temporary failure in name resolution)"))'), '(Request ID: 13658e42-5b83-4f43-b1f6-9660d67cc733)')

Container logs:

Fetching error logs...