This repository was archived by the owner on Jan 25, 2023. It is now read-only.
This repository was archived by the owner on Jan 25, 2023. It is now read-only.
403 Client Error #30
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels