Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

giving error with newly created chatgpt account. it is working fine with the old one. can anyone explain the cause Thanks! #31

Open
skyrank7700 opened this issue Mar 2, 2024 · 10 comments

Comments

@skyrank7700
Copy link

File "C:\Users\dell\Documents\python projects\rdpapi\chatgpt\gpt.py", line 15, in
for message in conversation.chat(prompt):
File "C:\Users\dell\AppData\Local\Programs\Python\Python312\Lib\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: {"wss_url":"wss://chatgpt-async-webps-prod-southcentralus-5.webpubsub.azure.com/client/hubs/conversations?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJodHRwczovL2NoYXRncHQtYXN5bmMtd2VicHMtcHJvZC1zb3V0aGNlbnRyYWx1cy01LndlYnB1YnN1Yi5hS3JmaEl2YXlqekhlNCIsInJvbGUiOlsid2VicHVic3ViLmpvaW5MZWF2ZUdyb3VwLnVzZXIteXU2M3cxTVNvbGFLcmZoSXZheWp6SGU0Il0sIndlYnB1YnN1Yi5ncm91cCI6WyJ1c2VyLXl1NjN3MU1Tb2xhS3JmaEl2YXlqekhlNCJdfQ.U-mcH6ZxMlj_vEKWUgOyKK89isQGVZP4ueWmWht7EA0","expires_at":"2024-03-02T21:55:23.950182+00:00","conversation_id":"f82ec126-2e71-4183-ab3e-607dbeb6501c","response_id":"85e449926c9fde5b-MCT","websocket_request_id":null}.

@peme969
Copy link

peme969 commented Mar 5, 2024

yeah i am having the same issue!

@gerkim62
Copy link

is this fixed yet?

@skyrank7700
Copy link
Author

no

@Barrierml
Copy link
Contributor

PR alreay pushed, wait approved, you can use it at https://github.com/Barrierml/reverse-engineered-chatgpt

@CyniBot
Copy link

CyniBot commented Mar 15, 2024

PR alreay pushed, wait approved, you can use it at https://github.com/Barrierml/reverse-engineered-chatgpt

ty for fixing it bro i really need it, im waiting for it to get approved

@gerkim62
Copy link

PR alreay pushed, wait approved, you can use it at https://github.com/Barrierml/reverse-engineered-chatgpt

i am trying to run your fix, but it is showing same error, what am i doing wrong? i have downloaded your fork as zip and trying to run the syncchatgpt example

@Barrierml
Copy link
Contributor

  1. you should check that you imported module is newest fork
# you can do like this
pip uninstall re-gpt
pip install git+https://github.com/Barrierml/reverse-engineered-chatgpt
  1. if it's still same error, you can offer your system, environment, and your test code

@gerkim62
Copy link

i think there is yet another change they introduced. see what it is now returning

image

@gerkim62
Copy link

i dont know why it didnt work earlier but it is working now

@Barrierml
Copy link
Contributor

i think there is yet another change they introduced. see what it is now returning

image

The reason for this error is that there is no logic to handle title generation, theoretically it can be used normally, I will try to fix this bug

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

5 participants