Parameter annotated with PathParam cannot be null

I am trying to get access token with identity provider from remote database and on localhost it works. But when i am trying to do this with docker i am getting this error
16:16:12,427 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-2) Uncaught server error: java.lang.NullPointerException: RESTEASY004690: Parameter annotated with PathParam cannot be null

at java.base/java.util.Objects.requireNonNull(Objects.java:246)

at org.jboss.resteasy.resteasy-jaxrs@3.13.2.final//org.jboss.resteasy.client.jaxrs.internal.proxy.processors.webtarget.pathparamprocessor.build(pathparamprocessor.java:35)

at org.jboss.resteasy.resteasy-jaxrs@3.13.2.final//org.jboss.resteasy.client.jaxrs.internal.proxy.clientinvoker.createrequest(clientinvoker.java:162)

at org.jboss.resteasy.resteasy-jaxrs@3.13.2.final//org.jboss.resteasy.client.jaxrs.internal.proxy.clientinvoker.invokesync(clientinvoker.java:148)
can anybody help?