Skip to content

Unexpected keyword argument in client.secrets.list_secrets(): secretMetadata #15

@Divyansh0811

Description

@Divyansh0811

Hello team!

We recently upgraded to 1.0.2 and faced an error while fetching the secrets from the list_secrets() method.

Error: TypeError: BaseSecret.init() got an unexpected keyword argument 'secretMetadata'

Potential reason: In the ListSecretsResponse model, we have secrets as secrets: List[BaseSecret](

secrets: List[BaseSecret]
).

However, in the BaseSecret model, we do not have a param named secretMetadata(code), but we do get this field from the API response.

Maybe we might have to update the BaseSecret model accordingly, let me know, Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions