Compare commits

...

1 Commits

Author SHA1 Message Date
Soulter
fd53e0e751 fix(weixin_oc): add error handling and retry logic for inbound updates polling
fixes: #7022
2026-03-27 15:35:48 +08:00

View File

@@ -902,6 +902,13 @@ class WeixinOCAdapter(Platform):
"weixin_oc(%s): inbound long-poll timeout",
self.meta().id,
)
except Exception as e:
logger.error(
"weixin_oc(%s): poll inbound updates failed, will retry after 5 seconds: %s",
self.meta().id,
e,
)
await asyncio.sleep(5)
except asyncio.CancelledError:
raise
except Exception as e: