-
Notifications
You must be signed in to change notification settings - Fork 79
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
Secure credential storage failed to load. #148
Comments
If you're using env vars to store credentials then you don't need to run |
The error message should be corrected then. |
@jabowery Updated here: twilio/twilio-cli-core#80 |
This issue still exists.
Notes: |
@thebordie A secure credential store is not available in all environments so it fails to load. The instructions provided allow for using env vars instead of a secure credential store. |
how to add in DigitalOcean Ubuntu (18.04.3 LTS), please add the command allow for using env var |
|
I'm getting hit with the same issue here.
Nodejs installed as such[1]:
followed by:
and now it fails:
if I install dbus-launch with sudo apt install dbus-x11
and if I run a local X server on my windows machine(X-ming)
And this is where I'm stuck and have no idea what's wrong. [1] https://github.com/nodesource/distributions/blob/master/README.md |
@vprokofev If you use env vars for auth, then you don't need a twilio-cli profile and don't need to run the |
The issue here is that the It throws that |
@krumbs Correct, before the Once you've configured the env vars, then there's no need to run the |
So does this mean |
@chrisnovak That is correct. Without a secure credential store to put the API key secret, |
Hi, I'm running
|
@bermudezmt The env vars need to be exported to work with twilio-cli. Recommend making sure they are set. E.g., |
That doesn't really seem to work. Today's saga:
I've tried different tactics here:
|
@bermudezmt Reviewed the code and I'm not seeing where the hiccup is happening. The only thing I can think of is |
Hi, I tried to deploy the example https://github.com/twilio/twilio-video-app-react, y setup the set TWILIO_ACCOUNT_SID, TWILIO_API_KEY follow the twilio documentation, then I tried |
Couldn't use login. ENV VARS worked, however I agree with previous mentions about this being confusing. I spent time trying to diagnose login for multiple environments. But if it doesn't work, it should not be allowed as an option. Most twilio sponsored workflows recommend usage of |
If you've not created a profile yet and attempt to run a command that requires auth, you would see that the profile "undefined" could not be found. This change just updates the wording to indicate that a profile could not be found to use. Relates to twilio/twilio-cli#148
Note that there was an issue in some twilio-cli releases prior to 2.2.0 that resulted in the Secure credential storage failed to load error. Also note that some of this is common code which is shared between twilio-cli and plugins. So even though twilio-cli resolved the issue, the plugin may be using old code. But I don't think that's the case here. Just tried on my local Windows 10 box and saw no issues using a fresh install with the latest twilio-cli release. I've attempted several times to make credential use/storage in twilio-cli clear, but obviously have failed. I'm open to suggestions on how to make this more intuitive. A native secure credential storage is not available on all environments. When twilio-cli attempts to interact with the store and fails, it prints a message explaining this and instructions about the use of env vars. We want guides/blogs to continue to use this path (via |
If you've not created a profile yet and attempt to run a command that requires auth, you would see that the profile "undefined" could not be found. This change just updates the wording to indicate that a profile could not be found to use. Relates to twilio/twilio-cli#148
I have all of the environment variables sourced. No matter what none of the commands work
They straight up all return the correct value, however exactly NO twilio cli functions get passed the auth stage. How is this still an issue? |
@drewstaylor What command are you running and can you post the debug output here (append |
@childish-sambino as stated above calling any Twilio-cli command will not pass auth Check .env file:
Check .env settings:
Call any twilio-cli command and the output always fails on the same error:
|
@drewstaylor Got it. My concern about knowing the specific command was to ensure it wasn't coming from some other plugin. What version of twilio-cli and Node is this? |
Could using nodejs via NVM be the culprit of this issue? |
Doubt it. That's what I use. Still looking though ... |
@childish-sambino appreciated, thank you :) As a sanity check our server is using the same |
@drewstaylor Think you need to |
That worked, thank you :) |
PR to update the wording on the env var message to include the |
For anyone else running into the below error (I kept getting it after trying to run the Error
Fixed by adding to Find my shell (I'm using zsh, you could be using, bash etc.):
Refresh my terminal and test - |
Note the message below is misleading, and will print out even when those variables are set:
This seems misleading - it implies Twilio isn't picking up the variables being set. A better message would be to check if the environment variables are set
|
I'm running a vagrant machine and have all my credentials inside a .env file in my app root directory, with twilio installed, etc. It does not see my env variables.... I'm lost. I keep getting the same error : Why is it not seeing my variables? |
@RAFH82 Can you please confirm the OS version you are using? |
❗Attention here❗ |
Unable to run
twilio login
Hi guys,
I'm trying to get twilio running on a web server (Digital Ocean Droplet if that matters) and am having trouble getting past the first steps.
Steps to Reproduce
npm install twilio-cli -g
twilio login
Spits out the error message:
I tried storing the credentials within environmental variables as suggested however the same error message comes up.
When I run
twilio login -l debug
, the error message gets an extra line at the bottom of:at SecureStorage.loadKeytar (/home/arj/.nvm/versions/node/v12.14.1/lib/node_modules/twilio-cli/node_modules/@twilio/cli-core/src/services/secure-storage.js:35:15)
I've not had too much experience with NVM/NPM so apologies if I'm doing something obiously incorrect.
Let me know if I'm doing anything wrong.
The text was updated successfully, but these errors were encountered: