Soulter / hugging-chat-api

HuggingChat Python API🤗
GNU Affero General Public License v3.0
859 stars 123 forks source link

like website take some changes #262

Open ticoAg opened 1 month ago

ticoAg commented 1 month ago
File "test.py", line 11, in <module>
    cookies = sign.login(cookie_dir_path=cookie_path_dir, save_cookies=True)
  File "/opt/miniconda3/envs/dev/lib/python3.10/site-packages/hugchat/login.py", line 48, in login
    if self._grant_auth(location):
  File "/opt/miniconda3/envs/dev/lib/python3.10/site-packages/hugchat/login.py", line 182, in _grant_auth
    res = self._request_get(location, allow_redirects=False)
  File "/opt/miniconda3/envs/dev/lib/python3.10/site-packages/hugchat/login.py", line 107, in _request_get
    res = requests.get(
  File "/opt/miniconda3/envs/dev/lib/python3.10/site-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
  File "/opt/miniconda3/envs/dev/lib/python3.10/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/opt/miniconda3/envs/dev/lib/python3.10/site-packages/requests/sessions.py", line 575, in request
    prep = self.prepare_request(req)
  File "/opt/miniconda3/envs/dev/lib/python3.10/site-packages/requests/sessions.py", line 484, in prepare_request
    p.prepare(
  File "/opt/miniconda3/envs/dev/lib/python3.10/site-packages/requests/models.py", line 367, in prepare
    self.prepare_url(url, params)
  File "/opt/miniconda3/envs/dev/lib/python3.10/site-packages/requests/models.py", line 438, in prepare_url
    raise MissingSchema(
requests.exceptions.MissingSchema: Invalid URL 
github-actions[bot] commented 1 month ago

Hi! Thanks for your issue, we will deal with your issue as soon as possible.