Open lume17 opened 1 year ago
Thats my code btw:
`ValueError Traceback (most recent call last)
/var/folders/lm/r85gqxfs3bd_hdrfk6q16kbh0000gq/T/ipykernel_19320/3760255479.py in
~/opt/anaconda3/lib/python3.9/site-packages/pyChatGPT/pyChatGPT.py in init(self, session_token, conversation_id, auth_type, email, password, login_cookies_path, captcha_solver, solver_apikey, proxy, chrome_args, moderation, verbose) 124 os.environ['PATH'] += os.pathsep + ffdl.ffmpeg_dir 125 --> 126 self.__init_browser() 127 weakref.finalize(self, self.del) 128
~/opt/anaconda3/lib/python3.9/site-packages/pyChatGPT/pyChatGPT.py in __init_browser(self) 221 222 self.logger.debug('Ensuring Cloudflare cookies...') --> 223 self.__ensure_cf() 224 225 self.logger.debug('Opening chat page...')
~/opt/anaconda3/lib/python3.9/site-packages/pyChatGPT/pyChatGPT.py in ensure_cf(self, retry) 266 self.logger.debug('Authorization is invalid') 267 if not self.__auth_type: --> 268 raise ValueError('Invalid session token') 269 self.login() 270 self.logger.debug('Authorization is valid')
ValueError: Invalid session token`
maybe dont include your session id in your message?
Hi guys,
following problem:
from pyChatGPT import ChatGPT
session_token
api = ChatGPT(session_token)
every time a new chrome window opens with a new session token. What is my misstake?
Thank you very much and PS.: I am a newbiee :)