-
-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Labels
bugSomething is not working.Something is not working.
Description
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- This issue affects my Ory Cloud project.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Describe the bug
when calling hydraClient.acceptLogoutRequest(challenge)
, okhttp throws an NPE (see below)
Generated code misses the content type:
Schema has no body for logout/accept (login has them):
Reproducing the bug
run hydraClient.acceptLogoutRequest(challenge)
Relevant log output
java.lang.NullPointerException: Parameter specified as non-null is null: method okhttp3.MediaType$Companion.parse, parameter $this$toMediaTypeOrNull
at okhttp3.MediaType$Companion.parse(MediaType.kt)
at okhttp3.MediaType.parse(MediaType.kt)
at sh.ory.hydra.ApiClient.buildRequest(ApiClient.java:1225)
at sh.ory.hydra.ApiClient.buildCall(ApiClient.java:1181)
at sh.ory.hydra.api.AdminApi.acceptLogoutRequestCall(AdminApi.java:449)
at sh.ory.hydra.api.AdminApi.acceptLogoutRequestValidateBeforeCall(AdminApi.java:461)
at sh.ory.hydra.api.AdminApi.acceptLogoutRequestWithHttpInfo(AdminApi.java:500)
at sh.ory.hydra.api.AdminApi.acceptLogoutRequest(AdminApi.java:481)
at io.papermc.hangarauth.controller.OAuthController.logout(OAuthController.java:229)
Relevant configuration
No response
Version
hydra java client 1.11.8
On which operating system are you observing this issue?
Windows
In which environment are you deploying?
Docker
Additional Context
No response
Metadata
Metadata
Assignees
Labels
bugSomething is not working.Something is not working.