Connection refused error when using python API

Getting the following error for no apparent reason right at the start of the program. Gets fixed by restarting but would like to know the root cause why.

Connection refused error

Parents Reply Children
No Data