Hi all, I’m running wiremock 3.9.1 in a container...
# help
r
Hi all, I’m running wiremock 3.9.1 in a container. I am mocking grpc calls from a browser, and using
envoy
to proxy calls before hitting wiremock. Unfortunately the client app is throwing “missing trailers” error as it expects the response to contain grpc trailers. Is it possible to log the request and response headers from wiremock? I am using
--verbose
argument but not getting much information from that.
Copy code
Host: [localhost:8080]
User-Agent: [curl/8.5.0]
Accept: [*/*]
t
1. Do you have the gRPC extension (correctly) installed in WireMock? 2. What happens if you hit WireMock directly?
r
Yes, extension is installed correctly as I am able to hit wiremock using curl with no problems. i’m using connectrpc library on the client app in the browser, if i use the grpc transport protocol there is no issue, but if i use the grpc-web transport protocol it will throw
missing trailers
error. Since I am using
envoy
to proxy grpc-web calls to wiremock I would assume that the required response headers expected from the front end would be intact. Just a fyi, I previously used
gripmock
as grpc mock server with this setup and that was also working fine.
having a look in the
envoy
logs… i can see that the trailers are NOT being passed and the stream being closed
Copy code
2024-10-16 07:14:55 [2024-10-15 20:14:55.595][41][debug][http] [source/common/http/conn_manager_impl.cc:1533] [C0][S5164429598623932382] encoding trailers via codec:

2024-10-16 07:14:55 [2024-10-15 20:14:55.596][41][debug][http2] [source/common/http/http2/codec_impl.cc:1417] [C1] stream 1 closed: 0
Any thoughts @Tom?
t
I don’t have any magic bullets unfortunately. I’ll need to be able to replicate this locally to have any realistic chance of figuring out what’s happening. One possible shot in the dark is that it’s related to Jetty 11 (which is the only version the gRPC extension works with at the moment). I’m going to try to get it working with 12 over the next couple of weeks so if I had a working test setup for this issue I could test this with it also.
r
No worries, I’ve raised an issue and included the source code and hopefully will make it easier to debug. Thanks for your time.