Skip to content

[ffi 0.5.1] grpc mock server - panic on getting mock server results #511

@tienvx

Description

@tienvx

Here are error:

2026-01-13T12:23:53.027757Z DEBUG ThreadId(01) pact_ffi::mock_server: pact_ffi::mock_server::pactffi_mock_server_matched FFI function invoked
2026-01-13T12:23:53.027772Z DEBUG ThreadId(01) pact_plugin_driver::plugin_manager: Sending getMockServerResults request to plugin plugin_name="protobuf" plugin_version="0.6.2" server_key="C9234567"
2026-01-13T12:23:53.027792Z DEBUG ThreadId(01) hyper_util::client::legacy::connect::http: connecting to [::1]:36961

thread '<unnamed>' (27951) panicked at /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.49.0/src/net/tcp/stream.rs:161:18:
there is no reactor running, must be called from the context of a Tokio 1.x runtime
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Caught panic with error: there is no reactor running, must be called from the context of a Tokio 1.x runtime
2026-01-13T12:23:53.027964Z DEBUG ThreadId(01) pact_ffi::mock_server: pact_ffi::mock_server::pactffi_mock_server_mismatches FFI function invoked

thread '<unnamed>' (27951) panicked at pact_ffi/src/mock_server/mod.rs:263:40:
called `Result::unwrap()` on an `Err` value: PoisonError { .. }
Caught panic with error: called `Result::unwrap()` on an `Err` value: PoisonError { .. }
2026-01-13T12:23:53.028048Z DEBUG ThreadId(01) pact_ffi::mock_server: pact_ffi::mock_server::pactffi_cleanup_mock_server FFI function invoked

thread '<unnamed>' (27951) panicked at pact_ffi/src/mock_server/mod.rs:336:40:
called `Result::unwrap()` on an `Err` value: PoisonError { .. }
Caught panic with error: called `Result::unwrap()` on an `Err` value: PoisonError { .. }
2026-01-13T12:23:53.028203Z DEBUG ThreadId(01) pact_ffi::plugins: pact_ffi::plugins::pactffi_cleanup_plugins FFI function invoked

Here is full trace log:

ffi 0.5.0 grpc mock server.txt

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