Zero6992 / chatGPT-discord-bot

Integrate ChatGPT into your own discord bot
GNU General Public License v2.0
2.6k stars 698 forks source link

Auto Login Bard Eror #488

Closed cemalcelik closed 3 months ago

cemalcelik commented 6 months ago

Hi bro,

Auto login not working?

Can we solve this problem together ?

image

C:\Users\JR\Desktop\ai>python main.py Initializing auto login for Google Bard ... Traceback (most recent call last): File "C:\Users\JR\Desktop\ai\main.py", line 4, in from src import bot File "C:\Users\JR\Desktop\ai\src\bot.py", line 7, in from src.aclient import client File "C:\Users\JR\Desktop\ai\src\aclient.py", line 163, in client = aclient() File "C:\Users\JR\Desktop\ai\src\aclient.py", line 48, in init self.bard_session_id = GoogleBardAutoLogin(google_account, google_password, chrome_version).get_cookie() File "C:\Users\JR\Desktop\ai\auto_login\AutoLogin.py", line 25, in init self.driver = Chrome(version_main=self.chrome_version, options=options) File "C:\Users\JR\AppData\Local\Programs\Python\Python310\lib\site-packages\undetected_chromedriver__init.py", line 257, in init__ self.patcher.auto() File "C:\Users\JR\AppData\Local\Programs\Python\Python310\lib\site-packages\undetected_chromedriver\patcher.py", line 158, in auto release = self.fetch_release_number() File "C:\Users\JR\AppData\Local\Programs\Python\Python310\lib\site-packages\undetected_chromedriver\patcher.py", line 222, in fetch_release_number return LooseVersion(urlopen(self.url_repo + path).read().decode()) File "C:\Users\JR\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 216, in urlopen return opener.open(url, data, timeout) File "C:\Users\JR\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 525, in open response = meth(req, response) File "C:\Users\JR\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 634, in http_response response = self.parent.error( File "C:\Users\JR\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 563, in error return self._call_chain(args) File "C:\Users\JR\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 496, in _call_chain result = func(args) File "C:\Users\JR\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

Zero6992 commented 3 months ago

Updated to Gemini and no longer need cookies for chat