You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encounter an error when trying to run any "apikeys" sub-commands like, remove, list, show, and save after successfully adding an API key for the first time. The error is as follows:
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
When I checked why this error occurs, I discovered it was due to this block
if Current.Meta.CurrentAPIKey != "" && Current.RegionToFeatures == nil {
Current.RegionToFeatures, err = regionsToFeature()
if err != nil {
fmt.Printf("Error getting supported regions to feature %s \n", err)
os.Exit(1)
}
dataBytes, err := json.Marshal(Current)
if err != nil {
fmt.Printf("Error parsing JSON %s \n", err)
os.Exit(1)
}
err = os.WriteFile(filename, dataBytes, 0600)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
}
The API key is set, but it fails when trying to fetch the features for the default region using that key."
Acceptance Criteria
I should be able to run the save subcommand as many times as needed without errors.
I should be able to run the remove subcommand as many times as needed without errors.
I should be able to run the list subcommand as many times as needed without errors.
I should be able to run the remove subcommand as many times as needed without errors.
The text was updated successfully, but these errors were encountered:
olamilekan000
changed the title
Error When trying to run "apikeys" commands after initially adding a random API key.
Error when trying to run "apikeys" commands after initially adding a random API key.
Oct 11, 2024
Issue
I encounter an error when trying to run any "apikeys" sub-commands like,
remove
,list
,show
, andsave
after successfully adding an API key for the first time. The error is as follows:When I checked why this error occurs, I discovered it was due to this block
The API key is set, but it fails when trying to fetch the features for the default region using that key."
Acceptance Criteria
save
subcommand as many times as needed without errors.remove
subcommand as many times as needed without errors.list
subcommand as many times as needed without errors.remove
subcommand as many times as needed without errors.The text was updated successfully, but these errors were encountered: