Hullo, why I am getting error ```/usr/lib/ruby/3.0...
# pact-ruby
i
Hullo, why I am getting error
Copy code
/usr/lib/ruby/3.0.0/net/http.rb:987:in `initialize': Failed to open TCP connection to <http://xyz.pactflow.io:443|xyz.pactflow.io:443> (getaddrinfo: Try again) (SocketError)
when trying to publish pact via docker CLI? Command:
Copy code
docker run --rm -w ${PWD} -v ${PWD}:${PWD} --network bridge -e PACT_DO_NOT_TRACK -e PACT_BROKER_BASE_URL \
-e PACT_BROKER_TOKEN pactfoundation/pact-cli:latest pact-broker publish "${PWD}/pactFiles/" --consumer-app-version=1234 --tag=branchName --branch=branchName
Is it related to new user group policies for free tier Pactflow users?
PS: I am on Mac Intel
t
This looks like a docker networking error, rather than a Pact configuration thing
i
I used to use similar command previously on my PC, without any problem
wondering why it happens
t
It looks to me like your network is not reaching your docker container correctly
i
seems so, any URL cannot be accessed. Probably, issue that I am using very slow internet this week
y
I reckon its the
--network bridge
option
I used to use similar command previously on my PC, without any problem
Linux / Windows? They all use different networking setups for Docker, as Docker is only native on Linux, other platforms are a cludge
i
PS: I am on Mac Intel
I used to use same config before
I suspect that now I am using slow internet connection
will check later on another connection
y
fingers crossed bud 🤞🏽
i
So it works on other internet connection, probably, it was some configuration on that router or something similar