Closed RoundedOrange closed 1 year ago
更新一下这个插件再重启:poetry run pip install --upgrade nonebot-plugin-gocqhttp
''' 12-07 00:52:05 [SUCCESS] nonebot | Succeeded to import "Genshin_Voice" 12-07 00:52:06 [SUCCESS] nonebot | Succeeded to import "NoticeAndRequest" 12-07 00:52:06 [SUCCESS] nonebot | Succeeded to import "tools" 12-07 00:52:06 [SUCCESS] nonebot | Succeeded to import "LittlePaimon" 12-07 00:52:06 [SUCCESS] nonebot | Running NoneBot... 12-07 00:52:06 [INFO] uvicorn | Started server process [2666] 12-07 00:52:06 [INFO] uvicorn | Waiting for application startup. 12-07 00:52:06 [INFO] nonebot_plugin_apscheduler | Scheduler Started 12-07 00:52:08 [ERROR] uvicorn | Traceback (most recent call last): File "/root/.cache/pypoetry/virtualenvs/littlepaimon-Yl79Fm97-py3.8/lib/python3.8/site-packages/starlette/routing.py", line 635, in lifespan async with self.lifespan_context(app): File "/root/.cache/pypoetry/virtualenvs/littlepaimon-Yl79Fm97-py3.8/lib/python3.8/site-packages/starlette/routing.py", line 530, in aenter await self._router.startup() File "/root/.cache/pypoetry/virtualenvs/littlepaimon-Yl79Fm97-py3.8/lib/python3.8/site-packages/starlette/routing.py", line 612, in startup await handler() File "/root/.cache/pypoetry/virtualenvs/littlepaimon-Yl79Fm97-py3.8/lib/python3.8/site-packages/nonebot_plugin_gocqhttp/init.py", line 40, in startup await download_gocq() File "/root/.cache/pypoetry/virtualenvs/littlepaimon-Yl79Fm97-py3.8/lib/python3.8/site-packages/nonebot_plugin_gocqhttp/process/download.py", line 120, in download_gocq raise RuntimeError("No available download mirror found.") RuntimeError: No available download mirror found.
12-07 00:52:08 [ERROR] uvicorn | Application startup failed. Exiting. '''
啊这,没有可用的下载镜像,试试开个代理吧,或者不用插件版,手动下载gocq
我用的服务器,我先试试手动下载吧
更新到最新版本即可,之前的资源检查api已经弃用,所以报错
git pull更新版本后可以了。
然后碰到了https://127.0.0.1/go-cqhttp 使用得了,但小派蒙登不上QQ账号的问题(总是出现“网络不稳定请使用常用设备或同一网络什么什么的”或“密码错误或账号被冻结什么什么的”),不知道是不是算被风控了。又查了一大堆资料解决了小派蒙登陆不了QQ账号的问题。 不知道有没有其他人遇到上述情况,我把我的解决方法说一下。
./go-cqhttp.exe
,注意命令行里面填的是下载exe文件的全名。./go-cqhttp.exe
,go-cqhttp.exe依然换成你exe文件的全名。仍然失败,但注意到生成device.json文件。./go-cqhttp.exe
,这时应该能成功。(这里我的情况是需要Enter键向手机发送验证码才能成功)执行第9点要注意的是,把所有device.json粘贴到设备信息里面貌似不行,后端会返回422报错,我就一个配置项一个配置项粘贴,把id啊mac地址啊这类的都粘贴上,其他看不懂的就不管了。结果最后居然可以登上。
还有一个问题是修改完配置后初次启动同样要求按Enter发送手机验证码,在我的电脑可以按Enter,但服务器按不了Enter,所以第一次启动要发验证码时我按不了,失败了;第二次启动就不要验证码了,我也不用按Enter了。感觉优化一下可以解决在服务器也能按Enter从而可以给手机发验证码的情况。不知道这是小派蒙负责管这些还是go-cqhttp管这些事。
以上。
执行poetry run nb run时出现以下报错
感觉是下载一个二进制文件时网络的问题,我试了好多次,每次都下载失败。是网络问题吗?该怎么解决?