Simatwa / WebChatGPT

Python SDK/API for ChatGPT Web-Version
GNU General Public License v3.0
86 stars 21 forks source link

Failed to fetch Auth value (403, Forbidden), supply path to correct cookies #19

Open t-mck opened 2 weeks ago

t-mck commented 2 weeks ago

I routinely get the following error despite following the setup instructions:

WebChatGPT.errors.VerificationError: Failed to fetch Auth value (403, Forbidden), supply path to correct cookies. Incase you have no idea on how to get the cookies check the documentation at - https://github.com/Simatwa/WebChatGPT

I have a copy of the cookies.json, I am running python 3.10, have an open instance of the model running in either Google Chrome, or Firefox (both fail for the same reason, and I recreated my cookies file when I switch browsers).

I have noticed that the url used throughout the code is some version of: https://chat.openai.com, and that OpenAI has changed that to https://chatgpt.com. So in order to troubleshoot I changed every instance of that url in the utils.py, however it does not fix the problem.

Note that my code routine gets a 403 error after running line 101 of the Utils.py file, and on line 106 there is comment that says: "# This sh*t here is raising http 403 in Python 3.9. Consider fixing it.", I'm wondering if there is an updated in an underlying library that is causing python 3.10 to end up with a 403 error? Or if it is some OpenAI change, or something I am doing incorrectly.

11100010 commented 1 week ago

same issue too

tddevel commented 6 days ago

have the same problem