Skip to content

Misleading exception when resolving duplicate secret ref #218

@llamafilm

Description

@llamafilm

Scenario & Reproduction Steps

  1. Create two items with the same name in the same vault.
  2. Try to run op.secrets.resolve("op://vault_uuid/item_name")

Actual Behavior

It throws an exception saying: error resolving secret reference: no vault matched the secret reference query

Expected Behavior

The exception message should say it's a duplicate.

SDK version

0.4.0

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions