Consul service mesh error

Hi everyone!
I have registered two services: counting and dashboard on consul running on two machines. The consul ui shows me 100% traffic flow but the dashboard service is unable to connect to counting service and is constantly showing -1 count.

Can anyone help me solving this issue please!