Login autonlp behind a proxy server
Hello,My account isenabled for AutoNLP.I’m following thepageto install autonlp on aWindows 10,Python version 3.8.5.I tried the autonlp login via a terminal.Command :autonlp login --api-keyMY_HUGGING_FACE_API_TOKENResults:Traceback (most recent call last):File “c:\users<my-username>\dev\huggingface\venv\lib\site-packages\autonlp\utils.py”, line 41, in http_getresponse = requests.get(File “c:\users<my-username>\dev\huggingface\venv\lib\site-packages\requests\api.py”, line 76, in getreturn request(‘get’, url, params=params, **kwargs)File “c:\users<my-username>\dev\huggingface\venv\lib\site-packages\requests\api.py”, line 61, in requestreturn session.request(method=method, url=url, **kwargs)File “c:\users<my-username>\dev\huggingface\venv\lib\site-packages\requests\sessions.py”, line 542, in requestresp = self.send(prep, **send_kwargs)File “c:\users<my-username>\dev\huggingface\venv\lib\site-packages\requests\sessions.py”, line 655, in sendr = adapter.send(request, **kwargs)File “c:\users<my-username>\dev\huggingface\venv\lib\site-packages\requests\adapters.py”, line 514, in sendraise SSLError(e, request=request)requests.exceptions.SSLError: HTTPSConnectionPool(host=‘huggingface.co’, port=443): Max retries exceeded with url: /api/whoami-v2 (Caused by SSLError(SSLCertVerificationError(1, ‘SSL: CERTIFICATE_VERIFY_FAILED certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)’)))During handling of the above exception, another exception occurred:Traceback (most recent call last):File “C:\Users<my-username>\AppData\Local\Programs\Python\Python38\lib\runpy.py”, line 194, in _run_module_as_mainreturn _run_code(code, main_globals, None,File “C:\Users<my-username>\AppData\Local\Programs\Python\Python38\lib\runpy.py”, line 87, inrun_codeexec(code, run_globals)File "C:\Users<my-username>\Dev\huggingface\venv\Scripts\autonlp.exe_main.py", line 7, inFile “c:\users<my-username>\dev\huggingface\venv\lib\site-packages\autonlp\cli\autonlp.py”, line 52, in maincommand.run()File “c:\users<my-username>\dev\huggingface\venv\lib\site-packages\autonlp\cli\login.py”, line 31, in runclient.login(token=self._api_key)File “c:\users<my-username>\dev\huggingface\venv\lib\site-packages\autonlp\autonlp.py”, line 41, in loginauth_resp = http_get(path="/whoami-v2", domain=config.HF_API, token=token, token_prefix=“Bearer”)File “c:\users<my-username>\dev\huggingface\venv\lib\site-packages\autonlp\utils.py”, line 45, in http_getraise UnreachableAPIError(“Failed to reach AutoNLP API, check your internet connection”)autonlp.utils.UnreachableAPIError:Failed to reach AutoNLP API, check your internet connectionCould you please tell me how to specify a proxy in the login command ?Many thanks for your help on this,++
2021-04-26T16:22:17Z
We would look into this issue. Since its a feature request, would you mind creating an issue in the Github repo:GitHub - huggingface/autonlp: 🤗 AutoNLP: train state-of-the-art natural language processing models and deploy them in a scalable environment automatically
2021-04-28T10:27:44Z
Hello@abhishekThis issue is logged and solvedIssue #63
2021-10-27T23:38:48Z
How did you solved this issue? I have the same one=((
2021-12-30T08:18:46Z
hello, how did you solve it?
2021-12-30T10:44:56Z
Please visit this GitHub page for the solution:Login autonlp behind a proxy server · Issue #63 · huggingface/autonlp · GitHub