MCPcopy
hub / github.com/tinode/chat / subscription_failed

Function subscription_failed

chatbot/python/chatbot.py:102–109  ·  view source on GitHub ↗
(topic, errcode)

Source from the content-addressed store, hash-verified

100 subscriptions.pop(topic, None)
101
102def subscription_failed(topic, errcode):
103 if topic == 'me':
104 # Failed 'me' subscription means the bot is disfunctional.
105 if errcode.get('code') == 502:
106 # Cluster unreachable. Break the loop and retry in a few seconds.
107 client_post(None)
108 else:
109 exit(1)
110
111def login_error(unused, errcode):
112 # Check for 409 "already authenticated".

Callers 1

subscribeFunction · 0.85

Calls 2

client_postFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…