The error message "Error: Exceeded maxRedirects. Probably stuck in a redirect loop" suggests that your application is stuck in a redirect loop. This can happen if there's an issue with the configuration of your application or server. However, the provided knowledge sources do not contain specific information about the error you're encountering when hitting the GET "/admin/identities" API with self-hosted Kratos. The sources do mention a potential redirect loop issue in the context of social sign-in. In that case, Ory redirects users back to the registration page after a successful OIDC flow when some identity traits couldn't be mapped using the data received from the social sign-in provider. If the Jsonnet configuration for the social sign-in provider is incorrect and Ory can't map the data correctly, the registration page gets stuck in a redirect loop. To fix the redirect loop, the Jsonnet configuration for the social sign-in provider needs to be adjusted so that the data from the provider gets mapped correctly to the Identity Schema. [source](
https://www.ory.sh/docs/troubleshooting/troubleshooting-social-sign-in#redirect-loops-after-successful-registration) However, this may not be directly related to your issue with the GET "/admin/identities" API. For more specific troubleshooting, I recommend checking the Ory Kratos documentation or reaching out to the Ory community for support.