Unknown_error when attempting to use the REST api

Keycloak v20.0.3

Not sure if it’s related, but the logs show: NullPointerException

No idea how to begin to diagnose this issue since the error provides no context.

Request is as follows:

POST /admin/realms/master/clients HTTP/1.1
Host: keycloak.mydomain.com
Content-Type: application/json
Authorization: Bearer  <bearer-token>

I’m an idiot.

I copy pasted the Postman request, and swapped the path without changing it to a GET.

Still, the errors need to be more descriptive.

In this case, a POST to that path, with the payload I provided is more than enough context for keycloak to spit out a more descriptive error.