Norman Hopfeld
12/11/2024, 9:05 AMjavax.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:
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/Tom
12/11/2024, 3:10 PMservice
and the corresponding WireMock instance?