jelmer / prometheus-xmpp-alerts

XMPP Web hook for Prometheus
Apache License 2.0
31 stars 9 forks source link

breaks when it loses connection #1

Closed jelmer closed 5 years ago

jelmer commented 7 years ago

Traceback (most recent call last): File "/usr/lib/python3.5/wsgiref/handlers.py", line 137, in run self.result = application(self.environ, self.start_response) File "/home/jelmer/prometheusxmpp.py", line 72, in call id = self.client.send(nbxmpp.protocol.Message(self.to_jid, text, typ='chat')) File "/usr/lib/python3/dist-packages/nbxmpp/dispatcher_nb.py", line 576, in send self.sm.request_ack() File "/usr/lib/python3/dist-packages/nbxmpp/smacks.py", line 94, in request_ack self._owner.Connection.send(r, False) AttributeError: 'NoneType' object has no attribute 'send'

jelmer commented 7 years ago

I haven't actually been able to reproduce this in a while.

jelmer commented 5 years ago

This should be fixed with the move to slixmpp.