Алейдин Караимин
07/21/2024, 8:49 AM127.0.0.1 - POST /com.example.MyService/GetStatus
content-type: [application/grpc]
te: [trailers]
user-agent: [grpc-java-netty/1.65.0]
grpc-accept-encoding: [gzip]
123
Matched response definition:
{
"status" : 200,
"body" : "{\n \"id\": \"123\"\n}",
"headers" : {
"grpc-status-name" : "OK"
}
}
Response:
HTTP/2.0 200
grpc-status-name: [OK]
Matched-Stub-Id: [657ca985-dc4e-4da5-8c6b-07de073d8b8d]
And this is the error log from my application code (grpc-java)
io.grpc.StatusRuntimeException: UNKNOWN: HTTP status code 200
invalid content-type: null
headers: Metadata(:status=200,grpc-status-name=OK,matched-stub-id=657ca985-dc4e-4da5-8c6b-07de073d8b8d)
DATA-----------------------------
{
"id": "123"
}
DATA-----------------------------
at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:268) ~[grpc-stub-1.65.0.jar:1.65.0]
at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:249) ~[grpc-stub-1.65.0.jar:1.65.0]
It is really strange. The :status
should have been set to 0 I guessLee Turner
07/21/2024, 9:08 AMАлейдин Караимин
07/21/2024, 9:17 AMCaused by: com.github.tomakehurst.wiremock.common.FatalStartupException: Jetty 11 is not present and no suitable HttpServerFactory extension was found
Lee Turner
07/21/2024, 11:04 AMАлейдин Караимин
07/21/2024, 5:14 PMLee Turner
07/21/2024, 5:15 PM