[go: up one dir, main page]

Skip to content
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

Can't remove a wrong Apikey through civo cli #464

Open
aakashnagpal4567 opened this issue Sep 12, 2024 · 3 comments
Open

Can't remove a wrong Apikey through civo cli #464

aakashnagpal4567 opened this issue Sep 12, 2024 · 3 comments

Comments

@aakashnagpal4567
Copy link
Contributor

Issue

When a user saves a wrong API key through civo cli. The user can' able to remove that apikey and we can't add a new API key. Many users reported this issue.

for example, like here i save the wrong API, and after that i list the region as you can see here:

civo apikey save
Enter a nice name for this account/API Key: test
Enter the API key: Saved the API Key test
ubuntu $ civo region ls
Unable to list regions: DatabaseAccountNotFoundError: Failed to find the account within the internal databaseError getting supported regions to feature DatabaseAccountNotFoundError: Failed to find the account within the internal database 

And when i try to remove that apikey, then I get this error:

ubuntu $ civo apikey remove test
Unable to list regions: DatabaseAccountNotFoundError: Failed to find the account within the internal databaseError getting supported regions to feature DatabaseAccountNotFoundError: Failed to find the account within the internal database
civo apikey ls
Unable to list regions: DatabaseAccountNotFoundError: Failed to find the account within the internal databaseError getting supported regions to feature DatabaseAccountNotFoundError: Failed to find the account within the internal database

A issue reported by a user related to this:
image

Acceptance Criteria

  • The user should be able to remove the wrong API key.
  • User should be able to add a new API key if by mistakenly he added a wrong API key.
@fernando-villalba fernando-villalba changed the title Cana't remove a wrong Apikey through civo cli Can't remove a wrong Apikey through civo cli Sep 12, 2024
@sundaram2021
Copy link

hey, i have already implemented this feature and raise PR.

Check it out here

please review it . Also tested it successfully.

thanks

@uzaxirr
Copy link
Member
uzaxirr commented Sep 23, 2024

ive just validated the issue and im unable to reproduce.

Screenshot 2024-09-24 at 12 55 51 AM

@sundaram2021
Copy link

image

"test2" apikey is the real apikey which i tried to set but failed becuase initially i set the wrong apikey "test".

Please check out the PR and review it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants