Closed liar666 closed 10 months ago
("_U"
"<code2>"
"2023-08-12T00:33:42+0200"
".bing.com"
"/"
t)
It looks like the _U
field in the cookie has expired. Try exporting a new cookie
Woaw... Finally.... After reinstalling my whole DoomEmacs config from scratch for the nth time, I got asked again to unlock/configure my KWallet.
Previous times, I just hit cancel
and was never asked again, but cookie stuff was working only when it wanted.
This time, I went for the complete configration of a default kwallet
.
It took some time and in the end, I saw this error in the *Message*
buffer:
Auto-saving...done
#s(promise-class 0 2 (:timeouted) nil nil)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/user/.local/lib/python3.10/site-packages/browser_cookie3/__init__.py", line 1061, in edge
return Edge(cookie_file, domain_name, key_file).load()
File "/home/user/.local/lib/python3.10/site-packages/browser_cookie3/__init__.py", line 733, in __init__
super().__init__(browser='Edge', cookie_file=cookie_file, domain_name=domain_name, key_file=key_file, **args)
File "/home/user/.local/lib/python3.10/site-packages/browser_cookie3/__init__.py", line 381, in __init__
self.__add_key_and_cookie_file(**kwargs)
File "/home/user/.local/lib/python3.10/site-packages/browser_cookie3/__init__.py", line 394, in __add_key_and_cookie_file
password = _LinuxPasswordManager(USE_DBUS_LINUX).get_password(os_crypt_name)
File "/home/user/.local/lib/python3.10/site-packages/browser_cookie3/__init__.py", line 226, in get_password
return self.__methods_map.get('kwallet')(os_crypt_name)
File "/home/user/.local/lib/python3.10/site-packages/browser_cookie3/__init__.py", line 273, in __get_kdewallet_password_dbus
handle = kwalletd5.open(kwalletd5.networkWallet(), dbus.Int64(0), self._APP_ID)
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in __call__
return self._connection.call_blocking(self._named_service,
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
End of buffer [6 times]
Seems we are narrowing down on the error... Remains to find a (definitive) solution...
Also, as you can see, it seems to look for a cookie in Edge
, whereas my config.org
has:
(setq aichat-browser-name 'firefox) ; and/or
(setq aichat-bingai-cookies-file "~/.doom.d/packages/cookie.json")
Oh! Sorry I did'nt see your answer...
cookie.json
file without noticing :(python
's browser_cookie
package did not work...
Still having a lot of trouble with my DoomEmacs config, thus I'm rewriting it from scratch, piece by piece. DoomEmacs gets
emacs-aichat
directly from github repo withstraight.el
.I've started with very few things, included the one that fails most often:
emacs-aichat
.Here is the config:
When I call
aichat-bingai-assistant
with "C-S-a" on some selected text, I get an error.Thus I tried what you advised recently:
There seems to be a cookie loaded. Then calling
aichat-bingai-assistant
with "C-S-a" on some selected text, again.Here is the output in the
*Message*
buffer (I indented & anonymized the cookie content. Otherwise it is untouched):Apparently,
emacs-aichat
does not manage to extract the cookie anymore. The exact samecookie.json
was working a few days ago (but Idoom upgrade
d since then).Since my config is now minimal, and even the commands you provided earlier do not work. I don't think my config is the problem. Is there any change in Bing API?