Logout-all endpoint returning an error

Hello, I’ve recently started using Keycloak for an application that I’m developing, using the API seems straight forward and never had any problems with it until now. I’m trying to create a function that simply logs out all logged in users using the logout-all endpoint. I’m however getting an error back which states:

12:53:39,729 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-1) Uncaught server error: org.jboss.resteasy.core.NoMessageBodyWriterFoundFailure: Could not find MessageBodyWriter for response object of type: org.keycloak.representations.adapters.action.GlobalRequestResult of media type: application/octet-stream

I’m using Python’s requests package to do the post request. Any idea?