mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-18 10:26:07 +00:00
feat: 添加did not receive a valid HTTP response的troubleshooting (#103)
This commit is contained in:
@@ -174,6 +174,10 @@ def main(first_time_init=False):
|
|||||||
"hypercorn异常:{}, 请查看 https://github.com/RockChinQ/QChatGPT/issues/86".format(
|
"hypercorn异常:{}, 请查看 https://github.com/RockChinQ/QChatGPT/issues/86".format(
|
||||||
e))
|
e))
|
||||||
known_exception_caught = True
|
known_exception_caught = True
|
||||||
|
elif str(e).__contains__("did not receive a valid HTTP"):
|
||||||
|
logging.error(
|
||||||
|
"mirai-api-http端口无法使用:{}, 请参考 https://github.com/RockChinQ/QChatGPT/issues/22 更换端口".format(
|
||||||
|
e))
|
||||||
else:
|
else:
|
||||||
logging.error(
|
logging.error(
|
||||||
"捕捉到未知异常:{}, 请前往 https://github.com/RockChinQ/QChatGPT/issues 查找或提issue".format(e))
|
"捕捉到未知异常:{}, 请前往 https://github.com/RockChinQ/QChatGPT/issues 查找或提issue".format(e))
|
||||||
|
|||||||
Reference in New Issue
Block a user