Hi. I'm trying to set up a mock via wiremock and w...
# wiremock-java
n
Hi. I'm trying to set up a mock via wiremock and wiremock-grpc and it has to be https. I can find no documentation in this case and it doesn't seem to work. I always get the following errors:
Copy code
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
Exception in thread "main" org.apache.hc.core5.http.NoHttpResponseException: The target server failed to respond
when defining the following stub:
Copy code
service.stubFor(method("GetTopic")
				.withRequestMessage(equalToJson("{ \"topicName\": \"/event/Test__e\" }"))
				.willReturn(message(TopicInfo.newBuilder().setTopicName("/event/Test__e")
						.setTenantGuid("123456").setCanPublish(true).setCanSubscribe(true)
						.setSchemaId("abcdef")
						.build())));
I followed the steps to set up wiremock with grpc and the setup for https. But I have no idea what am I missing. https://github.com/wiremock/wiremock-grpc-demos/tree/main https://wiremock.org/docs/java-usage/ https://wiremock.org/docs/grpc/ https://wiremock.org/docs/https/
t
Can you share the code where you’re setting up
service
and the corresponding WireMock instance?