mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
feat: 添加did not receive a valid HTTP response的troubleshooting (#103)
This commit is contained in:
parent
2894309fa6
commit
4e54c24bf0
4
main.py
4
main.py
|
@ -174,6 +174,10 @@ def main(first_time_init=False):
|
|||
"hypercorn异常:{}, 请查看 https://github.com/RockChinQ/QChatGPT/issues/86".format(
|
||||
e))
|
||||
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:
|
||||
logging.error(
|
||||
"捕捉到未知异常:{}, 请前往 https://github.com/RockChinQ/QChatGPT/issues 查找或提issue".format(e))
|
||||
|
|
Loading…
Reference in New Issue
Block a user