![]() |
How to ignore "Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=None))" - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: How to ignore "Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=None))" (/thread-36750.html) |
How to ignore "Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=None))" - const - Mar-26-2022 Hi While running my code, I encounter this kind of warnings: [WARNING] - Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe5bb9be630>: Failed to establish a new connection: [Errno 111] Connection refused')'How to ignore them while logging? import warnings warnings.filterwarnings("ignore")does not work as well as logging.getLogger("urllib3").setLevel(logging.CRITICAL) RE: How to ignore "Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=None))" - Larz60+ - Mar-26-2022 show entire error (comment out the ignore statement) traceback as it contains important debugging information. RE: How to ignore "Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=None))" - const - Mar-26-2022 (Mar-26-2022, 08:34 AM)Larz60+ Wrote: show entire error (comment out the ignore statement) traceback as it contains important debugging information. Here it is: 2022-03-26 12:06:47,421 - [WARNING] - Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe5bb98a080>: Failed to establish a new connection: [Errno 111] Connection refused')': / 2022-03-26 12:06:47,422 - clearml.storage - ERROR - Exception encountered while uploading HTTPConnectionPool(host='koala02.ftc.ru', port=8081): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe5bb98a208>: Failed to establish a new connection: [Errno 111] Connection refused')) 2022-03-26 12:06:47,422 - clearml.metrics - WARNING - Failed uploading to http://koala02.ftc.ru:8081 (HTTPConnectionPool(host='koala02.ftc.ru', port=8081): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe5bb98a208>: Failed to establish a new connection: [Errno 111] Connection refused'))) 2022-03-26 12:06:47,423 - [WARNING] - Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe5bb98a6a0>: Failed to establish a new connection: [Errno 111] Connection refused')': / 2022-03-26 12:06:47,424 - [WARNING] - Retrying (Retry(total=1, connect=1, read=5, redirect=5, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe5bb98a898>: Failed to establish a new connection: [Errno 111] Connection refused')': / 2022-03-26 12:06:47,424 - [WARNING] - Retrying (Retry(total=0, connect=0, read=5, redirect=5, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe5bb98aa20>: Failed to establish a new connection: [Errno 111] Connection refused')': / 2022-03-26 12:06:47,425 - clearml.storage - ERROR - Exception encountered while uploading HTTPConnectionPool(host='koala02.ftc.ru', port=8081): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe5bb98aba8>: Failed to establish a new connection: [Errno 111] Connection refused')) 2022-03-26 12:06:47,425 - clearml.metrics - WARNING - Failed uploading to http://koala02.ftc.ru:8081 (HTTPConnectionPool(host='koala02.ftc.ru', port=8081): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe5bb98aba8>: Failed to establish a new connection: [Errno 111] Connection refused'))) 2022-03-26 12:06:47,425 - clearml.metrics - ERROR - Not uploading 2/2 events because the data upload failed RE: How to ignore "Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=None))" - ndc85430 - Mar-26-2022 They aren't getting an error, they just want to turn the logging off for the retries. |