shinken icon indicating copy to clipboard operation
shinken copied to clipboard

Arbitrer dies because of a connection error during a ping

Open ghislainp opened this issue 7 years ago • 1 comments

This is the end of a traceback that causes arbitrer death

File "/usr/local/lib/python2.7/dist-packages/shinken/objects/satellitelink.py", line 226, in ping r = self.con.get('ping') File "/usr/local/lib/python2.7/dist-packages/shinken/http_client.py", line 139, in get raise Exception('Connection error to %s : %s' % (self.uri, r)) Exception: Connection error to http://localhost:7769/ : 0

it seems http_client.py should returns a HttpException instead of a basic Exception because it the former is catched by the ping function in satellitelink.py, not the latter.

This does not explain why this exception is raised, but at least the arbitrer would not die.

ghislainp avatar Mar 25 '17 07:03 ghislainp

Good catch ! This is fixed in PR #1919.

geektophe avatar Jun 28 '17 12:06 geektophe