Skip to content

Improve error message when using the wrong Service Account #146

@pro-sumer

Description

@pro-sumer

Current Behavior

node_modules/@1password/sdk/dist/errors.js:18
        throw new Error(errString);
              ^

Error: data did not match any variant of untagged enum Invocation at line 1 column 152
    at throwError (/Users/rob/Developer/Personal/Trakt/node_modules/@1password/sdk/dist/errors.js:18:15)
    at SharedCore.<anonymous> (/Users/rob/Developer/Personal/Trakt/node_modules/@1password/sdk/dist/core.js:47:41)
    at Generator.throw (<anonymous>)
    at rejected (/Users/rob/Developer/Personal/Trakt/node_modules/@1password/sdk/dist/core.js:6:65)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

Desired Behavior

Error: the Service Account XXX that you are using does not have the correct access rights to work with the vault YYY.

Benefits & Value

It would prevent me spending hours looking in the wrong directions (trying to find non-existing bugs in my code).

Additional information

See discussion on your Slack about this (April 25).

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