Hi Team, :wave: New to entire community, hoping t...
# help
p
Hi Team, 👋 New to entire community, hoping to get some help 🙏 I have been using wiremock as a client, to stub the responses of a gRPC Server. I followed this page - https://wiremock.org/docs/grpc/. To setup my client tests, using the below jars
(using standalone flavour)
• org.wiremockwiremock standalone3.6.0 • org.wiremockwiremock grpc extension standalone0.6.0 What I've noticed is, that wiremock stubs work great 💪 using BlockingStubs, If I don't add them I get an error of
io.grpc.StatusRuntimeException: NOT_FOUND
, and once I add them they work like a charm 🪄 However, There was a need to stub the Async stub too, and for that I've tried to create the stubs just in the same way as I did for the Blocking ones, and noticed whether I add stubs or not, I always get the error as
io.grpc.StatusRuntimeException: CANCELLED
Not sure what am I missing, any help would be greatly appreciated 🙏
t
Hi @Priyatosh, firstly the gRPC extension’s tests have some examples of streaming requests and responses: https://github.com/wiremock/wiremock-grpc-extension/blob/main/src/test/java/org/wiremock/grpc/GrpcAcceptanceTest.java WireMock’s support for gRPC streaming is quite limited at the moment. We plan to improve this, but it’ll require some core architectural changes, which need some consideration. If you’ve got something you think should work but isn’t, I suggest you post the code and any other setup information in full, then one of us can take a look.