-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Copy link
Labels
type/bugSomething isn't working as expectedSomething isn't working as expected
Description
h3. Component
[| #component]
No response
h3. Infrahub SDK version
[| #infrahub-sdk-version]
1.12.0
h3. Current Behavior
[| #current-behavior]
Executing the infrahubctl info command, without providing authentication details will result in a GraphQL error:
infrahubctl info
Address: http://localhost:8000
Connection Status: ❌
Connection Error: An error occurred while executing the GraphQL Query
query GET_PROFILE_DETAILS {
AccountProfile {
id
display_label
account_type {
value
__typename
updated_at
}
status {
label
value
updated_at
__typename
}
description {
value
updated_at
__typename
}
label {
value
updated_at
__typename
}
member_of_groups {
count
edges {
node {
display_label
group_type {
value
}
... on CoreAccountGroup {
id
roles {
count
edges {
node {
permissions {
count
edges {
node {
display_label
identifier {
value
}
}
}
}
}
}
}
display_label
}
}
}
}
__typename
name {
value
updated_at
__typename
}
}
}
, [{'message': 'Unable to find the node anonymous / CoreGenericAccount in the database.', 'locations':
[{'line': 3, 'column': 3}], 'path': ['AccountProfile']}] (GraphQLError)
Python Version: 3.11.6
SDK Version: 1.12.0
Infrahub Version: 1.2.9rc0
h3. Expected Behavior
[| #expected-behavior]
We should display a proper informational message of what is going wrong.
h3. Steps to Reproduce
[| #steps-to-reproduce]
- Spin up instance of Infrahub
- Install the SDK including the CTL extra in a virtual environment
- Do not set INFRAHUB_API_TOKEN or INFRAHUB_USERNAME and INFRAHUB_PASSWORD environment variables
- execute the command
infrahubctl info
h3. Additional Information
[| #additional-information]
No response
Metadata
Metadata
Assignees
Labels
type/bugSomething isn't working as expectedSomething isn't working as expected