<#452 Provider state regression in 4.4.0> Issue cr...
# pact-net
g
#452 Provider state regression in 4.4.0 Issue created by dheardal I currently have a provider test suite setup using Pact.Net 4.3.0, using the following code:
Copy code
new PactVerifier(config)
            .ServiceProvider("Test", _fixture.ServerUri)
            .WithPactBrokerSource(new Uri(pactBrokerUri), opts =>
            {
                opts
                    .TokenAuthentication(apiToken)
                    .ConsumerVersionSelectors(new ConsumerVersionSelector { MainBranch = true, Latest = true })
                    .PublishResults(providerVersion, results =>
                    {
                        results
                            .ProviderBranch(branchName);
                    });
            })
            .WithProviderStateUrl(new Uri(_fixture.ServerUri, "/provider-states"))
            .Verify();
This all works fine in 4.3.0, but as soon as i upgrade to 4.4.0 without changing any configuration I suddenly start getting these errors:
Copy code
Request Failed - One or more of the setup state change handlers has failed
...
MismatchResult::Error("Invalid status code: 405", Some("793d03f1cf58ea18516c4e41492e368e905a5cd3"))
It seems as though the provider states HTTP method has changed or it is no longer being called as a post pact-foundation/pact-net