PactNet.Linux.x64 2.5.0 Fails with Ruby Error
See original GitHub issueWhen I run PactNet.Linux.x64 v2.5.0 in a Docker container, I get the following Ruby-related error on every interaction:
Error reading file from 'http://pactbroker.mydomain.local/pacts/provider/Provider/consumer/Consumer/latest/master'
No such file or directory @ rb_sysopen - 'http://pactbroker.mydomain.local/pacts/provider/Provider/consumer/Consumer/latest/master' /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-support-1.12.0/lib/pact/consumer_contract/pact_file.rb:51:in `read'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-support-1.12.0/lib/pact/consumer_contract/pact_file.rb:51:in `get_local'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-support-1.12.0/lib/pact/consumer_contract/pact_file.rb:41:in `render_pact'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-support-1.12.0/lib/pact/consumer_contract/pact_file.rb:22:in `read'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-1.43.0/lib/pact/provider/pact_source.rb:14:in `pact_json'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-1.43.0/lib/pact/provider/pact_spec_runner.rb:116:in `collect'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-1.43.0/lib/pact/provider/pact_spec_runner.rb:116:in `pact_jsons'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-1.43.0/lib/pact/provider/pact_spec_runner.rb:79:in `configure_rspec'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-1.43.0/lib/pact/provider/pact_spec_runner.rb:33:in `run'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-1.43.0/lib/pact/cli/run_pact_verification.rb:67:in `run_with_pact_uri_object'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-1.43.0/lib/pact/cli/run_pact_verification.rb:50:in `run_specs'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-1.43.0/lib/pact/cli/run_pact_verification.rb:21:in `call'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-1.43.0/lib/pact/cli/run_pact_verification.rb:14:in `call'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.26.0/lib/pact/provider_verifier/app.rb:161:in `verify_pact'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.26.0/lib/pact/provider_verifier/app.rb:41:in `block in call'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.26.0/lib/pact/provider_verifier/app.rb:40:in `collect'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.26.0/lib/pact/provider_verifier/app.rb:40:in `call'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.26.0/lib/pact/provider_verifier/app.rb:32:in `call'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.26.0/lib/pact/provider_verifier/cli/verify.rb:53:in `verify'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.26.0/lib/pact/provider_verifier/cli/custom_thor.rb:17:in `start'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/app/pact-provider-verifier.rb:33:in `<main>'
/app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-support-1.12.0/lib/pact/consumer_contract/pact_file.rb:51:in `read': No such file or directory @ rb_sysopen - 'http://pactbroker.mydomain.local/pacts/provider/Provider/consumer/Consumer/latest/master' (Errno::ENOENT)
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-support-1.12.0/lib/pact/consumer_contract/pact_file.rb:51:in `get_local'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-support-1.12.0/lib/pact/consumer_contract/pact_file.rb:41:in `render_pact'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-support-1.12.0/lib/pact/consumer_contract/pact_file.rb:22:in `read'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-1.43.0/lib/pact/provider/pact_source.rb:14:in `pact_json'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-1.43.0/lib/pact/provider/pact_spec_runner.rb:116:in `collect'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-1.43.0/lib/pact/provider/pact_spec_runner.rb:116:in `pact_jsons'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-1.43.0/lib/pact/provider/pact_spec_runner.rb:79:in `configure_rspec'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-1.43.0/lib/pact/provider/pact_spec_runner.rb:33:in `run'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-1.43.0/lib/pact/cli/run_pact_verification.rb:67:in `run_with_pact_uri_object'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-1.43.0/lib/pact/cli/run_pact_verification.rb:50:in `run_specs'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-1.43.0/lib/pact/cli/run_pact_verification.rb:21:in `call'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-1.43.0/lib/pact/cli/run_pact_verification.rb:14:in `call'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.26.0/lib/pact/provider_verifier/app.rb:161:in `verify_pact'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.26.0/lib/pact/provider_verifier/app.rb:41:in `block in call'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.26.0/lib/pact/provider_verifier/app.rb:40:in `collect'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.26.0/lib/pact/provider_verifier/app.rb:40:in `call'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.26.0/lib/pact/provider_verifier/app.rb:32:in `call'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.26.0/lib/pact/provider_verifier/cli/verify.rb:53:in `verify'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/vendor/ruby/2.2.0/gems/pact-provider-verifier-1.26.0/lib/pact/provider_verifier/cli/custom_thor.rb:17:in `start'
from /app/tests/MyProject.Pacts/bin/Release/netcoreapp2.1/pact-linux-x86_64/lib/app/pact-provider-verifier.rb:33:in `<main>'
The important bit is No such file or directory @ rb_sysopen
Downgrading to 2.4.8 works fine. I’m wondering if the bundled standalone pact has been upgraded and caused this issue.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:12 (9 by maintainers)
Top Results From Across the Web
pact-net
Hi, I have a problem with PactNet.Windows 2.3.0. Tests run perfectly on local machine but fail with this error on VSTS: ...
Read more >Running PACT test is throwing a Ruby Load Error
It looks like the infamous windows long path issue. See that issue for further details, but the simplest option is to move your...
Read more >PactNet.Linux.x64 3.0.2
Version Downloads Last updated
3.0.2 599,974 10/11/2021
3.0.1 79,808 10/6/2021
3.0.0 125,160 5/14/2021
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll try to come up with a sample repo to reproduce. Might not be today though
On Thu, 30 Jan 2020, 04:52 namhuynhkien, notifications@github.com wrote:
Ah, that old chestnut.