-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symbol’s value as variable is void: print-message #10
Comments
Thanks for the report! Let's try a few things first. Can you evaluate your (let* ((matches (auth-source-search :user "[email protected]"
:host "bitwarden.foo"
:require '(:secret)
:max 1))
(entry (nth 0 matches)))
(plist-get entry :secret)) Second, can you log in via the command line (without any emacs) and query your passwords? |
So yes to the first question. The let statement works as expected.
Regarding the command line (first I feel silly not already trying that) -- yes BUT I also needed to pass an API key client_secret which I found by following these instructions: <https://bitwarden.com/help/personal-api-key/>
I notice that in my configuration password XXX is my password but there is nowhere that I am passing the API key...
|
On the command line the following call logs me in bw login [email protected] 'XXX' --code YYY |
Hmm, did the command line change and I not notice it yet? Let me see if there are any updates and try on my end. You shouldn't need the api key, by the way |
I haven't been able to reproduce this so it's been a challenge to see what's wrong :-( |
Ya sorry I have not been much help. Laptop died and tried to recover.
Sent From My Mobile Device
…________________________________
From: Sean Farley ***@***.***>
Sent: Monday, April 18, 2022 4:59:34 PM
To: seanfarley/emacs-bitwarden ***@***.***>
Cc: Justin Silverman ***@***.***>; Author ***@***.***>
Subject: Re: [seanfarley/emacs-bitwarden] Symbol’s value as variable is void: print-message (Issue #10)
I haven't been able to reproduce this so it's been a challenge to see what's wrong :-(
—
Reply to this email directly, view it on GitHub<#10 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AADOORSXT3HER3RLBLZDGG3VFXELNANCNFSM5TK52W6A>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I see a few spots in the code where |
Hi @seanfarley Sorry for the delay. Finally got my new laptop up and running. I found this issue that is of relevance and explains the API key client_secret issues: bitwarden/cli#383 it looks like this is a new-ish issue that is here to stay. Would likely be good to build in ability to pass API client_secret to emacs-bitwarden. |
And here is the backtrace from running bitwarden-login Debugger entered--Lisp error: (void-variable print-message) |
Aha, thanks for figuring out the hard part! Is this only happening for non-self-hosted servers? For example, I self-host the rust port of the bitwarden server and haven't run into this. |
That would be my guess but I am not sure. But reading through the linked issue that would be a solid guess
Sent From My Mobile Device
…________________________________
From: Sean Farley ***@***.***>
Sent: Monday, April 25, 2022 4:55:25 PM
To: seanfarley/emacs-bitwarden ***@***.***>
Cc: Justin Silverman ***@***.***>; Author ***@***.***>
Subject: Re: [seanfarley/emacs-bitwarden] Symbol’s value as variable is void: print-message (Issue #10)
Aha, thanks for figuring out the hard part! Is this only happening for non-self-hosted servers? For example, I self-host the rust port of the bitwarden server and haven't run into this.
—
Reply to this email directly, view it on GitHub<#10 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AADOORRHETGTJACXYFGDUXDVG4BD3ANCNFSM5TK52W6A>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
<p dir="auto"><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #10.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1203413750" data-permission-text="Title is private" data-url="#10" data-hovercard-type="issue" data-hovercard-url="//issues/10/hovercard" href="https://github.com/seanfarley/emacs-bitwarden/issues/10">#10</a></p> <p dir="auto">This adds two custom variables <code class="notranslate">bitwarden-api-secret-key</code> and <code class="notranslate">bitwarden-api-client-id</code> that have the same interface as the existing <code class="notranslate">bitwarden-automatic-unlock</code>. These are optional but used as the prefered login method if non-nil. I have updated the readme providing guidance on how to obtain an API key and client_id and emphasizing that this approach only need to be used if users are storing their valult on bitwarden servers.</p>
Thank you for putting this package together.
I am trying to set this package up but I am getting the message
Symbol’s value as variable is void: print-message [2 times]
Whenever I try to login.
Here is my configuration.
I also have a line in my authinfo that reads
machine bitwarden.foo login [email protected] password XXX
The text was updated successfully, but these errors were encountered: