reverse-engineered-chatgpt icon indicating copy to clipboard operation
reverse-engineered-chatgpt copied to clipboard

There was a problem with your chat request. Please use a different browser or try again later.

Open krishna2206 opened this issue 3 months ago • 10 comments

Hello, I got this error when trying to get response from the API :

Exception in thread Thread-1 (send_message_and_print_response):
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/ubuntu/experiments/Python playground/reverse_chatgpt.py", line 19, in send_message_and_print_response
    for message in conversation.chat(prompt):
  File "/home/ubuntu/.local/lib/python3.10/site-packages/re_gpt/sync_chatgpt.py", line 135, in chat
    raise UnexpectedResponseError(error, server_response)
re_gpt.errors.UnexpectedResponseError: An unexpected error occurred. Error message: 'NoneType' object is not subscriptable.
This is what the server returned: {"detail":"There was a problem with your chat request. Please use a different browser or try again later."}.

This is the code :

with SyncChatGPT(session_token=session_token) as chatgpt:
    threads = []
    for i in range(1):
        t = threading.Thread(
            target=send_message_and_print_response,
            args=(chatgpt, messages[i], i+1))
        threads.append(t)
        t.start()

    for t in threads:
        t.join()

Any idea of what is happening here ?

krishna2206 avatar Mar 23 '24 15:03 krishna2206