Heyo guys! Quick question: The APIClient.MetadataA...
# ory-network
c
Heyo guys! Quick question: The APIClient.MetadataApi.IsAlive() method seems to return 404 - is this on purpose? Is there another interface or method I can use to achieve the same thing (with minimal workload attached ofc)?
Basically I'm using it as a health check - the logic that wraps it is for local development, and basically says "Create an ory client, do a health check, if the health check fails, fall back to a mock"
h
Interesting, I don’t think we support this endpoint right now 😕 We do have https://status.ory.sh but that’s probably not what you need?
i guess you could make a request to
https://<project>.<http://projects.oryapis.com/.well-known/openid-configuration|projects.oryapis.com/.well-known/openid-configuration>
and see if that returns 200 - if it does it’s alive
there’s an API method for that i believe
c
Sounds like a good enough hack for me, I'll look around and see if I can figure out which API that is. Thanks!
h
you’re welcome!
c
Looks like it should be
Copy code
APIClient.OidcApi.DiscoverOidcConfiguration()
So I'll use that instead - again thanks 🙂