Open dholiday-splunk opened 1 year ago
I did some investigating and discovered the issue is the reauthentication flow in ComplexAccessCache
is running into a cloudflare challenge despite the cf_clearance
value being set.
How did you fix it? I have the same problem
I did set the cf_clearance, UserAgent and the Token, but it does not work
hihi all and ty for putting this together!
I'm struggling a bit with respect to getting the api to reliably connect to openGPT. I had some initial success so I know things CAN work but lately no matter what I do I get a TokenExpiredException. I did some diddling and discovered I can create that exception regardless of whether or not the
sessionToken
value is valid or not. My suspicion is that the values I'm providing ARE valid but something about the manner in which I'm providing them is causing a problem.STEPS TO REPRODUCE:
for convenience I'm using this chrome extension: https://github.com/itsbrex/ChatGPT-Cookies to pull the necessary information into a properties file.
I've modified the provided code to read that properties file and build the ChatGPT object in the manner described in the documentation.
I've verified that the cookie data being read by the library matches the cookie data in the browser.
CODE:
APP.CONFIG FILE STRUCTURE:
ERROR:
Any thoughts on what might be going on and/or what I might be fat fingering?
ty! 🍻