Open paisekamao opened 1 month ago
It should work anyway without all the cookies. Is the chromium instance opened by selenium connected to your ChatGPT account ?
my mistake the cookie was expired but one thing it mostly returns as encode error 127.0.0.1 - - [24/Sep/2024 01:38:11] "POST /ask HTTP/1.1" 200 - 127.0.0.1 - - [24/Sep/2024 01:38:33] "POST /ask HTTP/1.1" 200 - An error occured: list index out of range 'NoneType' object has no attribute 'encode' 127.0.0.1 - - [24/Sep/2024 01:42:03] "POST /ask HTTP/1.1" 500 - 127.0.0.1 - - [24/Sep/2024 01:42:19] "POST /ask HTTP/1.1" 200 - 127.0.0.1 - - [24/Sep/2024 01:45:08] "POST /ask HTTP/1.1" 200 - An error occured: list index out of range 'NoneType' object has no attribute 'encode' 127.0.0.1 - - [24/Sep/2024 01:49:56] "POST /ask HTTP/1.1" 500 - 127.0.0.1 - - [24/Sep/2024 01:50:26] "POST /ask HTTP/1.1" 200 - 127.0.0.1 - - [24/Sep/2024 01:56:57] "POST /ask HTTP/1.1" 200 - 127.0.0.1 - - [24/Sep/2024 01:57:23] "POST /ask HTTP/1.1" 200 - 127.0.0.1 - - [24/Sep/2024 02:01:47] "POST /ask HTTP/1.1" 200 - An error occured: list index out of range 'NoneType' object has no attribute 'encode' 127.0.0.1 - - [24/Sep/2024 02:02:21] "POST /ask HTTP/1.1" 500 - An error occured: list index out of range 'NoneType' object has no attribute 'encode' 127.0.0.1 - - [24/Sep/2024 02:03:03] "POST /ask HTTP/1.1" 500 - An error occured: list index out of range 'NoneType' object has no attribute 'encode' 127.0.0.1 - - [24/Sep/2024 02:03:31] "POST /ask HTTP/1.1" 500 - An error occured: list index out of range 'NoneType' object has no attribute 'encode' 127.0.0.1 - - [24/Sep/2024 02:04:09] "POST /ask HTTP/1.1" 500 - 127.0.0.1 - - [24/Sep/2024 02:04:46] "POST /ask HTTP/1.1" 200 - An error occured: list index out of range 'NoneType' object has no attribute 'encode' 127.0.0.1 - - [24/Sep/2024 02:05:31] "POST /ask HTTP/1.1" 500 - An error occured: list index out of range 'NoneType' object has no attribute 'encode' 127.0.0.1 - - [24/Sep/2024 02:05:51] "POST /ask HTTP/1.1" 500 - An error occured: list index out of range 'NoneType' object has no attribute 'encode' 127.0.0.1 - - [24/Sep/2024 02:06:10] "POST /ask HTTP/1.1" 500 - 127.0.0.1 - - [24/Sep/2024 02:31:50] "POST /ask HTTP/1.1" 200 - 127.0.0.1 - - [24/Sep/2024 02:32:39] "POST /ask HTTP/1.1" 200 - 127.0.0.1 - - [24/Sep/2024 02:36:05] "POST /ask HTTP/1.1" 200 -
most of the time it ends up like this
E:\PROJECTS\ChatGPTToAPI>python server.py
Starting the bot... Message: unable to set cookie (Session info: chrome=129.0.6668.59) Stacktrace: GetHandleVerifier [0x00A183E3+25571] (No symbol) [0x009AA684] (No symbol) [0x008A1F89] (No symbol) [0x008ACA1B] (No symbol) [0x00935D11] (No symbol) [0x0090AC0C] (No symbol) [0x00925349] (No symbol) [0x0090A9A6] (No symbol) [0x008DBAB6] (No symbol) [0x008DC50D] GetHandleVerifier [0x00CEC4A3+2991267] GetHandleVerifier [0x00D3D2C9+3322569] GetHandleVerifier [0x00AA84D2+615634] GetHandleVerifier [0x00AAFBFC+646140] (No symbol) [0x009B327D] (No symbol) [0x009B0188] (No symbol) [0x009B0325] (No symbol) [0x009A2826] BaseThreadInitThunk [0x77A8FCC9+25] RtlGetAppContainerNamedObjectPath [0x77BE80CE+286] RtlGetAppContainerNamedObjectPath [0x77BE809E+238]
Problem adding this cookie(May not be necessary to be connected to ChatGPT) : {'name': '__Host-next-auth.csrf-token', 'value': '040fdf2c88aed585f60785caf3a5588bf8bab1b737bad48104110fcd29aab5d6%7C9bba7d5fc5de475bcbbb146f12d2035fc693623f2cad40f3cc13c49d147b30f3', 'domain': 'chatgpt.com', 'path': '/', 'expires': -1, 'httpOnly': True, 'secure': True, 'sameSite': 'Lax'} Cookies loaded