Currently I have 2 micro services API,I am trying to test the connection between the two micro services API using Rspec(Ruby Spec), and using Ruby Faraday.
When I
Faraday.get "localhost:3000/api/v1"
I am having these error:
Failed to open TCP connection to localhost:3000 (Cannot assign requested address - connect(2) for "localhost" port 3000
But when I curl localhost:3000
The response works fine.