Open YotaInGame opened 4 months ago
use proxy.
eg:
set chatgpt(proxy = "http://127.0.0.1:1090")
Thanks for the quick response, how do I use a password-protected proxy? That doesn't work - f"http://{username}:{password}@{ip}:{port}"
oh,it does not support using proxies with usernames and passwords. maybe I will support it this weekend.
if I use a proxy, then nothing happens beyond a certain point. Anyway, I set up your script in rdp and I got the same problem "Verify you are human"
- The error in PowerShell indicates lack of permission to create a directory. You can try moving the program to another location and running it.
cf verify
possibly due to too many users using that IP. You can try proxies from other regions.
Nothing helped, I tried on 4 different computers, including macOS, the last proxy used was proxy="http://1.94.31.35:8888"
After entering the model request, nothing happens
"you can try moving the program to another location and running it" - I fixed it, just add key in sessions dict 'mode'
if I use a proxy, then nothing happens beyond a certain point. Anyway, I set up your script in rdp and I got the same problem "Verify you are human"
- The error in PowerShell indicates lack of permission to create a directory. You can try moving the program to another location and running it.
cf verify
possibly due to too many users using that IP. You can try proxies from other regions.Nothing helped, I tried on 4 different computers, including macOS, the last proxy used was proxy="http://1.94.31.35:8888"
After entering the model request, nothing happens
"you can try moving the program to another location and running it" - I fixed it, just add key in sessions dict 'mode'
headless=False
, does it have any effect?
- Please make sure your proxy is available and clean. cf will not verify the clean IP in some areas.
- I noticed that you set
headless=False
, does it have any effect?
You're right, free proxy servers are terrible. I found a working one, and this is what I got in the end. But I got another error when I try to send a message.
I was just experimenting.
- Please make sure your proxy is available and clean. cf will not verify the clean IP in some areas.
- I noticed that you set
headless=False
, does it have any effect?
You're right, free proxy servers are terrible. I found a working one, and this is what I got in the end. But I got another error when I try to send a message.
I was just experimenting.
look like it's still a network issue with the proxy
Thank you for your painstaking help! I'm using a different proxy server here. That's another mistake:
2024/07/11 13:05:11 ChatGPTWeb.py DEBUG Firefox browser is already installed. 2024/07/11 13:05:15 ChatGPTWeb.py DEBUG 000@gmail.com begin login when it start 2024/07/11 13:05:18 api.py DEBUG flush 000@gmail.com cf cookie OK! 2024/07/11 13:05:34 ChatGPTWeb.py DEBUG context 000@gmail.com start! 2024/07/11 13:05:34 ChatGPTWeb.py DEBUG load page over,http_status true,close page 2024/07/11 13:05:34 ChatGPTWeb.py DEBUG start!
2024/07/11 13:05:45 ChatGPTWeb.py DEBUG session 000@gmail.com begin work 2024/07/11 13:05:45 ChatGPTWeb.py ERROR send msg TEST error,session: 000@gmail.com,error:cannot access local variable 'send_page' where it is not associated with a value
2024/07/11 13:05:45 ChatGPTWeb.py DEBUG session 000@gmail.com finish work
Variable: chat = chatgpt(sessions=sessions, proxy=proxy, begin_sleep_time=True, headless=True, stdout_flush=True, httpx_status=True, logger_level='DEBUG')
sessions = [ { "email": "000@gmail.com", "password": "", "mode": "google", "session_token": "" // here is session_token } ]
sethttpx_status=False
set
httpx_status=False
If I set It, I get errors:
2024/07/11 13:28:03 ChatGPTWeb.py DEBUG send:hello Error occurred in event listener Traceback (most recent call last): File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_page.py", line 282, in _on_route handled = await route_handler.handle(route) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_helper.py", line 304, in handle raise e File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_helper.py", line 291, in handle return await self._handle_internal(route) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_helper.py", line 332, in _handle_internal await asyncio.ensure_future(coro_or_future) File "/Users/m/chatgpt/new/ChatGPT/ChatGPTWeb/ChatGPTWeb.py", line 448, in route_handle json_result = await page.evaluate("() => window._chatp.rS()") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/async_api/_generated.py", line 8340, in evaluate await self._impl_obj.evaluate( File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_page.py", line 440, in evaluate return await self._main_frame.evaluate(expression, arg) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_frame.py", line 278, in evaluate await self._channel.send( File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_connection.py", line 59, in send return await self._connection.wrap_api_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_connection.py", line 514, in wrap_api_call raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None playwright._impl._errors.Error: Page.evaluate: Something went wrong. If this issue persists please contact us through our help center at help.openai.com. i@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:346101 fetch@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:368122 asyncfetch2@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:368491 asyncpost@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:370305 postAnonAware@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:371098 async71199/d/n<@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:661461 promise callbackd@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:661437 tC/<@https://cdn.oaistatic.com/_next/static/chunks/488-e120b5f8a6681565.js:1:54624 uI@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:84056 oU@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:113104 oC@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:95921 r8@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:44813 95340/oI/<@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:111548 oI@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:111554 oS@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:94926 x@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:33:1365 T@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:33:1894 EventHandlerNonNull*26974@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:33:2063 h@debugger eval code line 226 > eval:7:110 22015@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:33:3825 h@debugger eval code line 226 > eval:7:110 95340@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:34 h@debugger eval code line 226 > eval:7:110 95295@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:129010 h@debugger eval code line 226 > eval:7:110 16254@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:128710 h@debugger eval code line 226 > eval:7:110 96287@https://cdn.oaistatic.com/_next/static/chunks/main-daff312d951e7e9c.js:1:6622 h@debugger eval code line 226 > eval:7:110 22441@https://cdn.oaistatic.com/_next/static/chunks/main-daff312d951e7e9c.js:1:15481 h@debugger eval code line 226 > eval:7:110 @https://cdn.oaistatic.com/_next/static/chunks/main-daff312d951e7e9c.js:1:108579 h.O@debugger eval code line 226 > eval:13:444 @https://cdn.oaistatic.com/_next/static/chunks/main-daff312d951e7e9c.js:1:108601 i@debugger eval code line 226 > eval:13:9758 @debugger eval code line 226 > eval:13:9896 @debugger eval code line 226 > eval:13:9967 evaluate@debugger eval code:226:30 @debugger eval code:1:44
Error occurred in event listener Error occurred in event listener
set
httpx_status=False
If I set It, I get errors:2024/07/11 13:28:03 ChatGPTWeb.py DEBUG send:hello Error occurred in event listener Traceback (most recent call last): File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_page.py", line 282, in _on_route handled = await route_handler.handle(route) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_helper.py", line 304, in handle raise e File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_helper.py", line 291, in handle return await self._handle_internal(route) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_helper.py", line 332, in _handle_internal await asyncio.ensure_future(coro_or_future) File "/Users/m/chatgpt/new/ChatGPT/ChatGPTWeb/ChatGPTWeb.py", line 448, in route_handle json_result = await page.evaluate("() => window._chatp.rS()") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/async_api/_generated.py", line 8340, in evaluate await self._impl_obj.evaluate( File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_page.py", line 440, in evaluate return await self._main_frame.evaluate(expression, arg) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_frame.py", line 278, in evaluate await self._channel.send( File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_connection.py", line 59, in send return await self._connection.wrap_api_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_connection.py", line 514, in wrap_api_call raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None playwright._impl._errors.Error: Page.evaluate: Something went wrong. If this issue persists please contact us through our help center at help.openai.com. i@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:346101 fetch@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:368122 async*fetch2@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:368491 async*post@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:370305 postAnonAware@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:371098 async*71199/d/n<@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:661461 promise callback*d@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:661437 tC/<@https://cdn.oaistatic.com/_next/static/chunks/488-e120b5f8a6681565.js:1:54624 uI@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:84056 oU@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:113104 oC@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:95921 r8@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:44813 95340/oI/<@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:111548 oI@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:111554 oS@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:94926 x@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:33:1365 T@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:33:1894 EventHandlerNonNull*26974@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:33:2063 h@debugger eval code line 226 > eval:7:110 22015@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:33:3825 h@debugger eval code line 226 > eval:7:110 95340@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:34 h@debugger eval code line 226 > eval:7:110 95295@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:129010 h@debugger eval code line 226 > eval:7:110 16254@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:128710 h@debugger eval code line 226 > eval:7:110 96287@https://cdn.oaistatic.com/_next/static/chunks/main-daff312d951e7e9c.js:1:6622 h@debugger eval code line 226 > eval:7:110 22441@https://cdn.oaistatic.com/_next/static/chunks/main-daff312d951e7e9c.js:1:15481 h@debugger eval code line 226 > eval:7:110 @https://cdn.oaistatic.com/_next/static/chunks/main-daff312d951e7e9c.js:1:108579 h.O@debugger eval code line 226 > eval:13:444 @https://cdn.oaistatic.com/_next/static/chunks/main-daff312d951e7e9c.js:1:108601 i@debugger eval code line 226 > eval:13:9758 @debugger eval code line 226 > eval:13:9896 @debugger eval code line 226 > eval:13:9967 evaluate@debugger eval code:226:30 @debugger eval code:1:44 Error occurred in event listener Error occurred in event listener
Did you try it a few times? Does it always give the same error?
Did you try it a few times? Does it always give the same error?
Yes, I've tried it several times. It's always the same mistake.
set
httpx_status=False
If I set It, I get errors:2024/07/11 13:28:03 ChatGPTWeb.py DEBUG send:hello Error occurred in event listener Traceback (most recent call last): File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_page.py", line 282, in _on_route handled = await route_handler.handle(route) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_helper.py", line 304, in handle raise e File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_helper.py", line 291, in handle return await self._handle_internal(route) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_helper.py", line 332, in _handle_internal await asyncio.ensure_future(coro_or_future) File "/Users/m/chatgpt/new/ChatGPT/ChatGPTWeb/ChatGPTWeb.py", line 448, in route_handle json_result = await page.evaluate("() => window._chatp.rS()") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/async_api/_generated.py", line 8340, in evaluate await self._impl_obj.evaluate( File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_page.py", line 440, in evaluate return await self._main_frame.evaluate(expression, arg) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_frame.py", line 278, in evaluate await self._channel.send( File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_connection.py", line 59, in send return await self._connection.wrap_api_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/m/chatgpt/new/venv/lib/python3.12/site-packages/playwright/_impl/_connection.py", line 514, in wrap_api_call raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None playwright._impl._errors.Error: Page.evaluate: Something went wrong. If this issue persists please contact us through our help center at help.openai.com. i@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:346101 fetch@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:368122 async*fetch2@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:368491 async*post@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:370305 postAnonAware@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:371098 async*71199/d/n<@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:661461 promise callback*d@https://cdn.oaistatic.com/_next/static/chunks/pages/_app-cb1c016b3bc4029d.js:38:661437 tC/<@https://cdn.oaistatic.com/_next/static/chunks/488-e120b5f8a6681565.js:1:54624 uI@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:84056 oU@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:113104 oC@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:95921 r8@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:44813 95340/oI/<@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:111548 oI@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:111554 oS@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:94926 x@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:33:1365 T@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:33:1894 EventHandlerNonNull*26974@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:33:2063 h@debugger eval code line 226 > eval:7:110 22015@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:33:3825 h@debugger eval code line 226 > eval:7:110 95340@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:34 h@debugger eval code line 226 > eval:7:110 95295@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:129010 h@debugger eval code line 226 > eval:7:110 16254@https://cdn.oaistatic.com/_next/static/chunks/framework-ac719dc28fda7a28.js:9:128710 h@debugger eval code line 226 > eval:7:110 96287@https://cdn.oaistatic.com/_next/static/chunks/main-daff312d951e7e9c.js:1:6622 h@debugger eval code line 226 > eval:7:110 22441@https://cdn.oaistatic.com/_next/static/chunks/main-daff312d951e7e9c.js:1:15481 h@debugger eval code line 226 > eval:7:110 @https://cdn.oaistatic.com/_next/static/chunks/main-daff312d951e7e9c.js:1:108579 h.O@debugger eval code line 226 > eval:13:444 @https://cdn.oaistatic.com/_next/static/chunks/main-daff312d951e7e9c.js:1:108601 i@debugger eval code line 226 > eval:13:9758 @debugger eval code line 226 > eval:13:9896 @debugger eval code line 226 > eval:13:9967 evaluate@debugger eval code:226:30 @debugger eval code:1:44 Error occurred in event listener Error occurred in event listener
This error looks like the session_token is expired.
This error looks like the session_token is expired.
changing session_token did not help, same error
This error looks like the session_token is expired.
changing session_token did not help, same error
set headless=False
,in the first browser window (chatgpt main interface), press F12, select "Network", click the gear on the right, and check Persist logs.
Next, return to the shell, try to send a message, and observe the status in the network, and take a screenshot
This error looks like the session_token is expired.
changing session_token did not help, same error
set
headless=False
,in the first browser window (chatgpt main interface), press F12, select "Network", click the gear on the right, and check Persist logs.Next, return to the shell, try to send a message, and observe the status in the network, and take a screenshot
This error looks like the session_token is expired.
changing session_token did not help, same error
set
headless=False
,in the first browser window (chatgpt main interface), press F12, select "Network", click the gear on the right, and check Persist logs. Next, return to the shell, try to send a message, and observe the status in the network, and take a screenshot
select Response
This error looks like the session_token is expired.
changing session_token did not help, same error
set
headless=False
,in the first browser window (chatgpt main interface), press F12, select "Network", click the gear on the right, and check Persist logs. Next, return to the shell, try to send a message, and observe the status in the network, and take a screenshotselect Response
Looking at the chatgpt homepage in the background, I actually didn't log in successfully. It should still be a network problem. Maybe it's a proxy problem. In addition, the new version already supports the use of http://user:pass@ip:port proxy, you can try it.
Looking at the chatgpt homepage in the background, I actually didn't log in successfully. It should still be a network problem. Maybe it's a proxy problem. In addition, the new version already supports the use of http://user:pass@ip:port proxy, you can try it.
This might be what the network looks like when it is normal.
Looking at the chatgpt homepage in the background, I actually didn't log in successfully. It should still be a network problem. Maybe it's a proxy problem. In addition, the new version already supports the use of http://user:pass@ip:port proxy, you can try it.
Thanks, I may be using the wrong proxy. I bought a proxy, but it still doesn't work. Maybe I'm using the wrong proxy? Can you check it out?
proxy = "154.195.183.192:63582:w9JeaKSJ:aSVa994i" ip, port, username, password = proxy.split(":")
proxy_url = f"http://{username}:{password}@{ip}:{port}"
Looking at the chatgpt homepage in the background, I actually didn't log in successfully. It should still be a network problem. Maybe it's a proxy problem. In addition, the new version already supports the use of http://user:pass@ip:port proxy, you can try it.
Thanks, I may be using the wrong proxy. I bought a proxy, but it still doesn't work. Maybe I'm using the wrong proxy? Can you check it out?
proxy = "154.195.xxx.xxx:6x82:w9xxxJ:aSxxxi" ip, port, username, password = proxy.split(":")
proxy_url = f"http://{username}:{password}@{ip}:{port}"
Hello :) I use this proxy server http://166.0.128.53:2566 (ip auth) in system, and it works well, but in the py script it doesn't work
if I run through a script, I see it
Hello :) I use this proxy server http://166.0.128.53:2566 (ip auth) in system, and it works well, but in the py script it doesn't work
if I run through a script, I see it
Please paste the DEBUG log. I just updated the 0.2.37 version, which fixes some problems and has more detailed log output.
Hi,
2024/07/15 09:54:40 ChatGPTWeb.py DEBUG Firefox browser is already installed. 2024/07/15 09:54:44 ChatGPTWeb.py DEBUG 000@gmail.com begin login when it start 2024/07/15 09:54:47 api.py DEBUG flush 000@gmail.com cf cookie OK! 2024/07/15 09:55:03 ChatGPTWeb.py DEBUG 000@gmail.com start! 2024/07/15 09:55:03 ChatGPTWeb.py DEBUG start!
2024/07/15 09:55:10 ChatGPTWeb.py DEBUG session 000@gmail.com begin work 2024/07/15 09:55:10 ChatGPTWeb.py DEBUG 000@gmail.com create new page to send msg 2024/07/15 09:55:10 ChatGPTWeb.py DEBUG 000@gmail.com will register conversation api route 2024/07/15 09:55:10 ChatGPTWeb.py DEBUG send:test 2024/07/15 09:55:11 ChatGPTWeb.py DEBUG 000@gmail.com begin create send msg cookie and header 2024/07/15 09:55:11 ChatGPTWeb.py DEBUG 000@gmail.com msg is new conversation 2024/07/15 09:55:11 ChatGPTWeb.py DEBUG 000@gmail.com will use page's _chatp 2024/07/15 09:55:11 ChatGPTWeb.py DEBUG 000@gmail.com will run page's _chatp.rS()
`Error occurred in event listener
Traceback (most recent call last):
File "/Users/mikheew/chatgpt/gpt/venv/lib/python3.12/site-packages/playwright/_impl/_page.py", line 282, in _on_route
handled = await route_handler.handle(route)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mikheew/chatgpt/gpt/venv/lib/python3.12/site-packages/playwright/_impl/_helper.py", line 304, in handle
raise e
File "/Users/mikheew/chatgpt/gpt/venv/lib/python3.12/site-packages/playwright/_impl/_helper.py", line 291, in handle
return await self._handle_internal(route)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mikheew/chatgpt/gpt/venv/lib/python3.12/site-packages/playwright/_impl/_helper.py", line 332, in _handle_internal
await asyncio.ensure_future(coro_or_future)
File "/Users/mikheew/chatgpt/gpt/ChatGPT/ChatGPTWeb/ChatGPTWeb.py", line 467, in route_handle
json_result = await page.evaluate("() => window._chatp.rS()")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mikheew/chatgpt/gpt/venv/lib/python3.12/site-packages/playwright/async_api/_generated.py", line 8340, in evaluate
await self._impl_obj.evaluate(
File "/Users/mikheew/chatgpt/gpt/venv/lib/python3.12/site-packages/playwright/_impl/_page.py", line 440, in evaluate
return await self._main_frame.evaluate(expression, arg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mikheew/chatgpt/gpt/venv/lib/python3.12/site-packages/playwright/_impl/_frame.py", line 278, in evaluate
await self._channel.send(
File "/Users/mikheew/chatgpt/gpt/venv/lib/python3.12/site-packages/playwright/_impl/_connection.py", line 59, in send
return await self._connection.wrap_api_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mikheew/chatgpt/gpt/venv/lib/python3.12/site-packages/playwright/_impl/_connection.py", line 514, in wrap_api_call
raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
Error occurred in event listener
Traceback (most recent call last):
File "/Users/mikheew/chatgpt/gpt/venv/lib/python3.12/site-packages/pyee/asyncio.py", line 51, in _emit_run
coro: Any = f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/Users/mikheew/chatgpt/gpt/venv/lib/python3.12/site-packages/playwright/_impl/_connection.py", line 56, in
Perhaps it's still a problem with the proxy. You might try using Clash for Windows
. Find and subscribe to a configuration file that uses proxies from regions like the United States. Once connected successfully, Clash will open a local HTTP + SOCKS proxy port, usually 7890. Then you can directly set the chatbot's proxy as proxy='http://127.0.0.1:7890'
.
Hi! All the time I have cloudflare checker "Verify you are human", how can I fix it?