-
-
Notifications
You must be signed in to change notification settings - Fork 592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用nb-cli创建项目后运行出现错误 #20
Comments
检查一下uvicorn版本是否为最新 报错原因: # uvicorn.protocols.utils.py
def get_remote_addr(transport):
socket_info = transport.get_extra_info("socket")
if socket_info is not None:
try:
info = socket_info.getpeername()
return (str(info[0]), int(info[1])) if isinstance(info, tuple) else None 在该函数中获取远程地址的host和port出现port错误,这个我并不清楚是uvicorn的问题还是go-cqhttp的问题,我这并没法复现这个错误,可以尝试在不同环境下启动go-cqhttp。 如果实在解决不了只能使用uvicorn命令行启动,看看是否还存在错误。 uvicorn bot:app --reload --host 127.0.0.1 --port 8080 |
直接使用uvicorn命令行启动,出现以下错误:
|
使用命令重置winsock目录后正常,应该是个例了……
|
mee too |
你好,我也出现了这样的问题,请问一下你是怎么解决的,谢谢 OS:Ubuntu 20.04.1 LTS x86_64 |
问题描述
根据Nonebotv2的指南,使用nb create创建项目后,运行出错。
先前使用最小实例无任何错误。
复现方法
按照Nonebotv2指南配置脚手架后运行
期望的行为
正常连接ws,载入内置插件
日志信息
此ValueError异常将会反复出现
相关代码
运行环境
The text was updated successfully, but these errors were encountered: