Hello, are there any known issues with the API per...
# ory-network
b
Hello, are there any known issues with the API performance, I am unable to delete oauth2 clients?
m
afaik no, what is the error you are getting?
b
So I am clicking on "Delete" in the UI for the oauth2 client, the request is being sent but after some time it's being cancelled:
I checked my Logs & Events page, but no luck there
b
Yea, seems like the request is just timing out in the frontend, because our DB commit (in our DB) is taking very long. We'll investigate, thanks for the message!
b
If you'll need anything from my end, just let me know 🙂
I'm not sure if that helps but we are running very old project which is on the legacy subscription and is not within any workspace
b
yea that could be a factor. Do you have many OAuth2 clients?
b
26 for this project
m
in the meantime you should also be able to use the API directly or via the CLI
ory delete oauth2-client
b
That doesn't save me since our API uses ory API directly in order to manage the clients and it also fails - that's how I noticed the issue
I know that I could try using Ory CLI, but it's a very temporary workaround since some part of our applications rely on that API endpoint
b
FWIW, the problem is internally on our side and most likely due to cascading deletion issues. I am guessing the client in question has a lot of data associated with it, e.g. tokens, challenges, etc. I've forwarded the issue to the team, and they will take a look. Is this blocking you at the moment?
b
I tried different clients with the same result
There might be a lot of data since they are ~3-4 years old
It is blocking our cleanups, but I guess I can wait a bit, it's not business critical issue
h
Probably a foreign key related issue
If the client has a ton of data associated it can cause time outs with the database we use. We have already filed reports with our vendor but they have not yet solved the issue. You can wait 30 days after which most stale data will be cleaned up automatically and hen try again
b
So, what you are saying is that when oauth2 client is not used, no tokens or other data is generated, and all of the old data will be gradually removed, so in ~30days it should work?
b
Yes
b
FYI, probably your explanation is correct, since I don't encounter any issues with the old unused oauth2 clients
@bland-eye-99092 @high-optician-2097 hello guys, it's past a month as you suggested but I'm still unable to delete the old oauth2 clients 😞
f
@high-optician-2097 @bland-eye-99092 we're still unable to delete those old clients, despite their inactivity for 2 months now
seems like a major issue on Ory side TBH - what if those were threat actors and we would need to delete them ASAP?
should we create a ticket for this?
b
yes please
b