fix(weixin_oc): add error handling and retry logic for inbound updates polling (#7041)

fixes: #7022
This commit is contained in:
Soulter
2026-03-27 15:36:31 +08:00
committed by GitHub
parent 383df74e34
commit 777b831691

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: