This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 193
Error with setPassword: The specified item already exists in the keychain. #127
Labels
Comments
adeperio
changed the title
The specified item already exists in the keychain.
Error with setPassword: The specified item already exists in the keychain.
Sep 28, 2018
@adeperio which OS are you testing on? |
I've seen reports of this as well, on macOS 10.14.6. Is there any data I can collect to help diagnose the problem? |
Actually, I think I now understand what is happening in my case! I have several different processes that are reading and writing to the same keychain item. If writes occur pretty much simultaneously, then one will throw the duplicate item error during the second Lines 81 to 99 in 3c232b5
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi
I am on node-keytar 4.2.1. Every so often, when I call setPassword, keytar sends back the following exception:
The specified item already exists in the keychain.
According to the docs I was expecting this function to update an existing item, or create a new keychain item if one doesn't exist. Is this the correct assumption? If so any ideas why I might be seeing this error.
Happens on some calls to setPassword, but on other calls it doesn't.
The text was updated successfully, but these errors were encountered: