FuseFairy / DiscordBot-EdgeGPT

Using Copilot, Bing Image Creator and DALLE-3 on Discord bot.
GNU General Public License v2.0
158 stars 42 forks source link

Cookies File Doesn't Work #98

Closed LoonaFurry closed 10 months ago

LoonaFurry commented 1 year ago

I Copy Cookie Information From bing.com with Chrome And I Save It Cookies File But I Try To Recopy It a Couple Of Times It's Still Doesn't Work It's Giving Me This Error I Don't Know What Should I Do But I Think The Error Related To The Cookies File Itself And The Error Message Is Here:

Traceback (most recent call last): File "C:\Users\^w^ Loona ^w^\Desktop\DiscordBot-EdgeGPT-main\bot.py", line 8, in from cogs.event import set_chatbot File "C:\Users\^w^ Loona ^w^\Desktop\DiscordBot-EdgeGPT-main\cogs\event.py", line 26, in cookies = json.load(file) ^^^^^^^^^^^^^^^ File "C:\Users\^w^ Loona ^w^\AppData\Local\Programs\Python\Python311\Lib\json__init.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "C:\Users\^w^ Loona ^w^\AppData\Local\Programs\Python\Python311\Lib\json\init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\^w^ Loona ^w^\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\^w^ Loona ^w^\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

pycharm64_4Eaw8JZZZb

FuseFairy commented 1 year ago

pls make sure your cookies copy from here https://bing.com/

LoonaFurry commented 1 year ago

pls make sure your cookies copy from here https://bing.com/

Discord_vDtDBVGy2w I Fixed The Problem And Now Giving Me a New Problem I Reset The Cookies File With New Cookie And I Couple Time Restard The Bot But The Error Still Keep Exist When I Ask Something To And Bot Please Fix This Problem Error: CaptchaChallenge: User needs to solve CAPTCHA to continue.

FuseFairy commented 1 year ago

Here is solution https://github.com/acheong08/EdgeGPT/issues/586