Errors not sent from inside container

Hello. I’m running a flask server inside a container and trying to send errors to our on-premise sentry server. I used the snippet for flask integrations and the logging works if the server is running outside the container. But if I run the server inside the container it stops sending errors and it gives this http error: flask | 2019-12-13 09:03:52,091: 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 0x7f27384f50f0>: Failed to establish a new connection: [Errno -5] No address associated with hostname',)': /api/4/store/ What could cause this and how could I fix it.

I added the correct domain and it started working, seems like it was the problem.

1 Like