-
Notifications
You must be signed in to change notification settings - Fork 443
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
API Key Not Saving in Keychain - OpenAI Chat Extension #1252
Comments
Same Problem |
When I revert the API key type in Config.ts to string, I can't start this extension. My version of the extension is 244. |
This one is currently a mystery to me. I don't think it is an issue with the extension but rather it seems PopClip may be having a problem saving to the keychain on some people's machines. As an initial step to gather information about the problem, I've added an alert dialog when a keychain action fails in PopClip 2024.12 (released today). If you see such an alert, please let me know the error message details. |
If you're editing an extension you'll need to also change the identifier so that is does not start with com.pilotmoon. -- then is should start OK. If any trouble please let me know the specifi eror or whatever (in a different issue, or an email) |
Thanks for the update! Here is the error that popped up in PopClip 2024.12.
|
Thank you. That error -34018 is errSecMissingEntitlement. Something to do with entitlements and code signing. Are you using a cracked version of PopClip? |
Now I have completely reinstalled the licensed version of PopClip. Everything works perfectly: the API key can be saved without any warnings. Thank you very much for developing and maintaining this excellent extension! |
That's great. Yes, a clean reinstall should solve it. If there is any modification or damage to the PopClip.app package, that will prevent macOS verifying the app signature and it won't allow it to access the secure keychain. |
Thank you for developing and maintaining this great extension!
I am using the "OpenAI Chat" extension with PopClip on MacOS Sequoia 15.1. Since the 2024-05-17 update (v133), where the API key is stored in the keychain, the API key cannot save properly. After entering the key in the settings, it appears blank when reopened. Using this extension warns:
Message from OpenAl (code 401): You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth.
I tried to revert the API key type from "secret" back to "string" in Config.ts and found that it resolved the issue.
Could this be a bug, or am I missing the correct way to store the API key in the keychain? Thanks for your help!
The text was updated successfully, but these errors were encountered: