Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting identites help unclear, command prints an error that "should never be printed" #170

Open
5 of 6 tasks
tomekpapiernik opened this issue May 12, 2022 · 1 comment
Labels
bug Something is not working. good first issue A good issue to tackle when being a novice to the project.

Comments

@tomekpapiernik
Copy link
Contributor

tomekpapiernik commented May 12, 2022

Preflight checklist

Describe the bug

I can't get ory identity delete to work. When I run ory identity --help, the help text says:

...
Usage:
  ory delete identity id-0 [id-1] [id-2] [id-n] [flags]

I run ory ls identities and get a list of the identities in my project. Identity IDs have this format: fef2df71-f06a-45ab-b52d-8bdc8e991e49

I try to use that ID and remove the identity:

ory delete identity id-fef2df71-f06a-45ab-b52d-8bdc8e991e49 --project MY_PROJECT_ID

(or w/o the id -> ory delete identity fef2df71-f06a-45ab-b52d-8bdc8e991e49 --project MY_PROJECT_ID )

The response I get is:

Unable to locate the resource
id-fef2df71-f06a-45ab-b52d-8bdc8e991e49: this error should never be printed

I thought that maybe the help text with id-0 / id-1 tells you to select identities like list items where id-0 points to the first identity printed in the list you get from ory ls identities but this doesn't work either.

➜  ~ ory delete identity id-0 --project MY_PROJECT_ID
You are authenticated as: tomasz.papiernik@ory.sh
You are authenticated as: tomasz.papiernik@ory.sh
Unable to locate the resource
id-0: this error should never be printed
➜  ~ ory delete identity id-1 --project MY_PROJECT_ID
You are authenticated as: tomasz.papiernik@ory.sh
You are authenticated as: tomasz.papiernik@ory.sh
Unable to locate the resource
id-1: this error should never be printed

Reproducing the bug

ory delete identity id-IDENTITY_ID --project PROJECT_ID

or

ory delete identity IDENTITY_ID --project PROJECT_ID

or

ory delete identity id-0 / id-1 --project PROJECT_ID

Relevant log output

No response

Relevant configuration

No response

Version

v0.1.29

On which operating system are you observing this issue?

Ory Cloud

In which environment are you deploying?

Ory Cloud

Additional Context

No response

@tomekpapiernik tomekpapiernik added the bug Something is not working. label May 12, 2022
@aeneasr
Copy link
Member

aeneasr commented May 12, 2022

Nice find, thank you!

@aeneasr aeneasr added the good first issue A good issue to tackle when being a novice to the project. label Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working. good first issue A good issue to tackle when being a novice to the project.
Projects
None yet
Development

No branches or pull requests

2 participants