Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

403 Client Error #30

Open
salsasteve opened this issue Dec 28, 2022 · 3 comments
Open

403 Client Error #30

salsasteve opened this issue Dec 28, 2022 · 3 comments

Comments

@salsasteve
Copy link

salsasteve commented Dec 28, 2022

I think they are removing or changing the endpoint location.

appuser@adab2bb37b36:/workspaces/gottithebot$ python -m chatgpt
> Write a blog about Augmented Reality for a 7 year old
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/chatgpt/chatgpt.py", line 352, in chat
    response = self._session.request(
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/chatgpt/sessions.py", line 84, in request
    response.raise_for_status()
  File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://chat.openai.com/backend-api/conversation

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/local/lib/python3.11/site-packages/chatgpt/__main__.py", line 30, in <module>
    main()
  File "/usr/local/lib/python3.11/site-packages/chatgpt/__main__.py", line 26, in main
    print(conversation.chat(message), end='\n\n')
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/chatgpt/chatgpt.py", line 383, in chat
    exception_message = str(reason).split(
                        ^^^^^^^^^^^^^^^^^^
IndexError: list index out of range
@y2k04
Copy link

y2k04 commented Jan 6, 2023

Same

@skskcco2o17
Copy link

I am facing the same problem.

Traceback (most recent call last):
File "C:\Users\XXX\Anaconda3\lib\site-packages\chatgpt\chatgpt.py", line 352, in chat
response = self._session.request(
File "C:\Users\XXX\Anaconda3\lib\site-packages\chatgpt\sessions.py", line 84, in request
response.raise_for_status()
File "C:\Users\XXX\Anaconda3\lib\site-packages\requests\models.py", line 953, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://chat.openai.com/backend-api/conversation

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
for chunk in conversation.stream("."):
File "C:\Users\XXX\Anaconda3\lib\site-packages\chatgpt\chatgpt.py", line 267, in stream
response = self.chat(message, retry_on_401, True, True)
File "C:\Users\XXX\Anaconda3\lib\site-packages\chatgpt\chatgpt.py", line 383, in chat
exception_message = str(reason).split(
IndexError: list index out of range

@y2k04
Copy link

y2k04 commented Jan 14, 2023

I gave up trying for the moment and moved onto the unofficial ChatGPT app by lencx.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants