Python + Flask Application - ConnectionRefusedError: [Errno 111]

This wouldn’t result in a connection error

This error says you failed to connect to the server.

It doesn’t provide any diagnostics as to why.

So you need to trace and solve that