PrivacyIDEA-Provider for keycloak ERROR

After authenticating with keycloak and entering OTP
Authorisation Error.
keycloak log see below

Keycloak v 18.0.0 . PrivacyIDEA-Provider-v1.1.0 PrivacyIdea v 3.7.1
2022-07-12 11:45:59,144 INFO [org.privacyidea.authenticator.PrivacyIDEAAuthenticator] (executor-thread-417) PrivacyIDEA Client: runRequestAsync: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 12 path $
2022-07-12 11:46:02,653 ERROR [org.privacyidea.authenticator.PrivacyIDEAAuthenticator] (OkHttp https://pi-test.exadel.com/…) PrivacyIDEA Client: : com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 12 path $
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 12 path $
2022-07-12 11:46:02,654 ERROR [org.privacyidea.authenticator.PrivacyIDEAAuthenticator] (executor-thread-417) PrivacyIDEA Client: : com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 12 path $
Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 12 path $

Could you please help with this issue

You are probably calling the wrong endpoint, so that your HTTP result is not a valid JSON response and thus you get rhe JSON decoding errors.