Hi there, anyone using the new pact-net nugget (pa...
# pact-net
f
Hi there, anyone using the new pact-net nugget (pact-net 4.x.x) got a timeout when doing provider state request?
Copy code
[INFO][pact_verifier] Running provider state change handler 'There exists 1 application revision 1' for 'A GET request to fetch application detail'
[DEBUG][pact_verifier::provider_client] Sending HTTP Request ( method: POST, path: /, query: None, headers: Some({"Content-Type": ["application/json"]}), body: Present(129 bytes, application/json) ) to state change handler
[DEBUG][reqwest::connect] starting new connection: <http://localhost:9001/>
[DEBUG][hyper::client::connect::http] connecting to [::1]:9001
[DEBUG][hyper::client::connect::http] connected to [::1]:9001
[DEBUG][pact_verifier::provider_client] State change request failed with error error sending request for url (<http://localhost:9001/provider-states>): operation timed out
[DEBUG][pact_verifier] State Change: "ProviderState { name: "There exists 1 application revision 1", params: {} }" -> Err(Provider state failed: (interaction_id: a64ddfb75ada4126584b9646620cc01271e1d3c3) Invalid response: error sending request for url (<http://localhost:9001/provider-states>): operation timed out)
[ERROR][pact_verifier] Provider state change for 'There exists 1 application revision 1' has failed - MismatchResult::Error("Invalid response: error sending request for url (<http://localhost:9001/provider-states>): operation timed out", Some("a64ddfb75ada4126584b9646620cc01271e1d3c3"))
[INFO][pact_verifier] Running provider state change handler 'There exists 1 application revision 1 with 2 producers' for 'A GET request to fetch the producers'
[DEBUG][pact_verifier::provider_client] Sending HTTP Request ( method: POST, path: /, query: None, headers: Some({"Content-Type": ["application/json"]}), body: Present(225 bytes, application/json) ) to state change handler
[DEBUG][reqwest::connect] starting new connection: <http://localhost:9001/>
[DEBUG][hyper::client::connect::http] connecting to [::1]:9001
[DEBUG][hyper::client::connect::http] connected to [::1]:9001
[DEBUG][reqwest::async_impl::client] response '200 OK' for <http://localhost:9001/provider-states>
It's just 1 interaction. Other that use the same provider state passes. Before the upgrade, it worked fine.
I've seen in the logs. It's a concurrency issue. It's trying to do all the setups at the same time. It tries to do the first provider state, then cleanup, then the second, then cleanup
anything that can be done about that?