Skip to content

[ffi 0.5.0] grpc plugin issue - HTTP request was not expected #510

@tienvx

Description

@tienvx

consumer send grpc request, but mock server response as:

2026-01-12T00:19:48.887930Z  INFO tokio-runtime-worker pact_mock_server::hyper_server: Received request POST /plugins.Calculator/calculate
2026-01-12T00:19:48.887941Z DEBUG tokio-runtime-worker pact_mock_server::hyper_server: 
      ----------------------------------------------------------------------------------------
       method: POST
       path: /plugins.Calculator/calculate
       query: None
       headers: Some({"grpc-accept-encoding": ["identity", "deflate", "gzip"], "te": ["trailers"], "content-type": ["application/grpc"], "user-agent": ["grpc-php/1.72.0 grpc-c/47.0.0 (linux; chttp2)"]})
       body: Present(67 bytes, application/grpc)
      ----------------------------------------------------------------------------------------
      
2026-01-12T00:19:48.887970Z DEBUG tokio-runtime-worker pact_mock_server::hyper_server: Request did not match: Request was not expected - HTTP Request ( method: POST, path: /plugins.Calculator/calculate, query: None, headers: Some({"grpc-accept-encoding": ["identity", "deflate", "gzip"], "te": ["trailers"], "content-type": ["application/grpc"], "user-agent": ["grpc-php/1.72.0 grpc-c/47.0.0 (linux; chttp2)"]}), body: Present(67 bytes, application/grpc) )

Here is full log (trace level): ffi 0.5.0 grpc.txt

Slack discussion: https://pact-foundation.slack.com/archives/C02BXLDJ7JR/p1768156499829449

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions