Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

urllib3 warnings urllib3.connectionpool:Retrying #64

Open
mohierf opened this issue Feb 1, 2018 · 1 comment
Open

urllib3 warnings urllib3.connectionpool:Retrying #64

mohierf opened this issue Feb 1, 2018 · 1 comment
Labels

Comments

@mohierf
Copy link
Collaborator

mohierf commented Feb 1, 2018

INFO:alignak_backend_client.client:backend_client, version: 1.1.0
DEBUG:alignak_backend_client.client:~~~~~~~~~~~~~~~~~~~~~~~~~~~~
INFO:alignak_backend_client.client:Trying to get user list
DEBUG:alignak_backend_client.client:Parameters for get_response:
DEBUG:alignak_backend_client.client:	 - endpoint: user
DEBUG:alignak_backend_client.client:	 - method: GET
DEBUG:alignak_backend_client.client:	 - headers: None
DEBUG:alignak_backend_client.client:	 - json: None
DEBUG:alignak_backend_client.client:	 - params: {'max_results': 50, 'where': '{"_is_template": false}'}
DEBUG:alignak_backend_client.client:	 - data: None
WARNING:urllib3.connectionpool:Retrying (Retry(total=4, connect=5, read=4, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', error(104, 'Connection reset by peer'))': /user?max_results=50&where=%7B%22_is_template%22%3A+false%7D
DEBUG:alignak_backend_client.client:response headers: {'Last-Modified': 'Thu, 01 Feb 2018 07:54:04 GMT', 'Content-Length': '5973', 'Content-Type': 'application/json', 'X-Total-Count': '4'}

There is no error, all the requests are successfully executed but this warning log is raised!

@algorys
Copy link
Contributor

algorys commented Feb 27, 2018

I confirm that spam App logs when internet connection is down (It's a case I have to manage in application to ensure it not freeze when internet is not stable).

Here is an example:

[2018-02-27,19:34:17]-urllib3.connectionpool: [WARNING] Retrying (Retry(total=4, connect=4, read=5, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fed0c3637f0>: Failed to establish a new connection: [Errno -3] Échec temporaire dans la résolution du nom',)': /livesynthesis?max_results=50
[2018-02-27,19:34:17]-urllib3.connectionpool: [WARNING] Retrying (Retry(total=3, connect=3, read=5, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fed296fb630>: Failed to establish a new connection: [Errno -3] Échec temporaire dans la résolution du nom',)': /livesynthesis?max_results=50
[2018-02-27,19:34:17]-urllib3.connectionpool: [WARNING] Retrying (Retry(total=2, connect=2, read=5, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fed296ebe48>: Failed to establish a new connection: [Errno -3] Échec temporaire dans la résolution du nom',)': /livesynthesis?max_results=50
[2018-02-27,19:34:18]-urllib3.connectionpool: [WARNING] Retrying (Retry(total=1, connect=1, read=5, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fecf7994fd0>: Failed to establish a new connection: [Errno -3] Échec temporaire dans la résolution du nom',)': /livesynthesis?max_results=50
[2018-02-27,19:34:20]-urllib3.connectionpool: [WARNING] Retrying (Retry(total=0, connect=0, read=5, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fed296ebf28>: Failed to establish a new connection: [Errno -3] Échec temporaire dans la résolution du nom',)': /livesynthesis?max_results=50
[2018-02-27,19:34:20]-alignak_backend_client.client: [ERROR] BackendException raised with code 1000 and message: HTTPConnectionPool(host='demo.alignak.net', port=6000): Max retries exceeded with url: /livesynthesis?max_results=50 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fed0c325588>: Failed to establish a new connection: [Errno -3] Échec temporaire dans la résolution du nom',)) - {'_error': {'code': 1000, 'message': ConnectionError(MaxRetryError("HTTPConnectionPool(host='demo.alignak.net', port=6000): Max retries exceeded with url: /livesynthesis?max_results=50 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fed0c325588>: Failed to establish a new connection: [Errno -3] Échec temporaire dans la résolution du nom',))",),)}, '_status': 'ERR', '_issues': {'code': 1000, 'message': ConnectionError(MaxRetryError("HTTPConnectionPool(host='demo.alignak.net', port=6000): Max retries exceeded with url: /livesynthesis?max_results=50 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fed0c325588>: Failed to establish a new connection: [Errno -3] Échec temporaire dans la résolution du nom',))",),)}}
[2018-02-27,19:34:20]-alignak_app.backend.backend: [INFO] Connection by token: Failure
[2018-02-27,19:34:20]-alignak_app.qobjects.systray.tray_icon: [INFO] App check connection: Failure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants