Unable to connect to service in private network
shimantabhuyan
HOBBYOP

a year ago

I have 2 services running in my project. One of them is not exposed publicly where as the other api server is exposed publicly.
I am unable to connect to the other service with the private networking url. I can see this error logs in the api server deployment, which says the connection couldn't be made:
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): nlm-ingestor.railway.internal:5001

DEBUG:urllib3.util.retry:Incremented Retry for (url='/api/parseDocument?renderFormat=all'): Retry(total=2, connect=None, read=None, redirect=None, status=None)

WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2243f8b250>: Failed to establish a new connection: [Errno 111] Connection refused')': /api/parseDocument?renderFormat=all

DEBUG:urllib3.connectionpool:Starting new HTTP connection (2): nlm-ingestor.railway.internal:5001

DEBUG:urllib3.util.retry:Incremented Retry for (url='/api/parseDocument?renderFormat=all'): Retry(total=1, connect=None, read=None, redirect=None, status=None)

WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f22440097d0>: Failed to establish a new connection: [Errno 111] Connection refused')': /api/parseDocument?renderFormat=all

DEBUG:urllib3.connectionpool:Starting new HTTP connection (3): nlm-ingestor.railway.internal:5001

DEBUG:urllib3.util.retry:Incremented Retry for (url='/api/parseDocument?renderFormat=all'): Retry(total=0, connect=None, read=None, redirect=None, status=None)

WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2244009f90>: Failed to establish a new connection: [Errno 111] Connection refused')': /api/parseDocument?renderFormat=all

DEBUG:urllib3.connectionpool:Starting new HTTP connection (4): nlm-ingestor.railway.internal:5001

Error in convert: HTTPConnectionPool(host='nlm-ingestor.railway.internal', port=5001): Max retries exceeded with url: /api/parseDocument?renderFormat=all (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f224400a810>: Failed to establish a new connection: [Errno 111] Connection refused'))

0 Replies

Loading...