Comments (21)
大概率是和 #22 同样的问题,可以看一下
from nonebot.
OK 好的,我回去试试自己心跳(嗯我的反向 WebSocket 也是在阿里云。。)
不过自己的代码写出 bug 产生异常很容易发生,希望可以做到我的代码出问题没有 except none 有一个全局的 except 吧
from nonebot.
None 现在命令有全局 except
from nonebot.
但是我只要是自己的插件出问题控制台报错以后 100% 出现给机器人发消息插件能收到消息但是回复消息失败……
另外就是出问题以后 Ctrl+C 退出机器人的时候错误日志会出现一次
from nonebot.
换句话说,现在的全局 except 似乎只做到了没有断开 event(事件上报正常),但是 api 会断开(调用命令回复失败)
from nonebot.
api 连接的问题,多半是因为 #22
None 的命令处理已经捕获了所有异常,理论上不太可能在命令里出现让连接断开的情况了,总之有空你先试下那个 issue 里的解法
from nonebot.
OK 好的
from nonebot.
做了每分钟一次 get_status,然后稳定运行了一个多小时到今天的 3:01,3:02 开始就调用失败了……
依然是能收到事件发不出去消息
from nonebot.
@ImSingee NoneBot 日志里面有什么异常嘛,除了 ApiNotFound
from nonebot.
我现在只能看到 ApiNotFound…… 昨天三点多的日志被刷掉了,一会我加一下日志存储吧,等再掉线了看看掉线前后时间点的日志
from nonebot.
from nonebot.
唔……那么你的 NoneBot 和插件通信是走公网 IP 的吗,还是本机
from nonebot.
公网……
CoolQ 运行在一台 Windows 上,None 部署在了腾讯云
from nonebot.
我发了个 v0.5.2,给命令、自然语言处理器、通知和请求处理器都加了全局 except,你试试看
另外还是建议 酷Q 和后端跑在同一个机器上,因为国内那些云确实会掐连接
from nonebot.
OK 我再试试。。
主要是不知道为什么我的酷 Q 用 docker 非常不稳定……
from nonebot.
好吧很诡异依然掉线
能否考虑支持把 api 和 event 放到一个连接的模式?因为我看 event 并不会断……
from nonebot.
哎我读了一下 aiocqhttp 的源码发现支持这个…… 我去试试
from nonebot.
@ImSingee 嗯现在支持 Universal 客户端,两个在同一个连接上
from nonebot.
OK,换成一个连接 + Universal 稳定了
from nonebot.
@ImSingee 嗯现在支持 Universal 客户端,两个在同一个连接上
现在支持一个链接了?!之前看旧的issues还说不支持来着……
"ws_reverse_url": "ws://127.0.0.1/ws/",
"ws_reverse_use_universal_client": true,
这样么?
from nonebot.
@yorushika 是这样
from nonebot.
Related Issues (20)
- 请问如何在只是User is calling me的情况下保持会话? HOT 2
- scheduler与message_preprocessor不在同一个eventloop导致两者之间很难进行同步 HOT 6
- nonebot+cqhttp反向websocket 时出现错误: websocket: bad handshake HOT 8
- [提问]如何关闭heartbeat的logging HOT 6
- aget 无法发送prompt HOT 3
- 1.8.3移除`CommandSession.args`导致类 Shell 参数解析Command出错 HOT 2
- 以 node-onebot 为后端无法正确设置 `ctx['to_me']` HOT 5
- 加載“失敗”的插件注冊的命令仍然可用 HOT 1
- 考慮移除 sched HOT 1
- NLPSession无法处理被两个qq表情夹着的关键词 HOT 11
- 运行`nb run`命令后直接抛出`cannot import name 'WebSocketSetup' from 'nonebot.drivers' ` HOT 1
- say 和 echo失踪 HOT 3
- NLPSession在较长的句子中不能识别到关键词 HOT 2
- 1
- 关于Pyinstaller打包后的exe为什么会报错的解决方案【建议调整一部分代码】
- 启动时遇到ImportError HOT 2
- m1 运行报错cannot import name 'escape' from 'jinja2' HOT 9
- ImportError: cannot import name 'overrides' from 'nonebot.typing' HOT 1
- 无法正确识别“回复”类型消息中的指令 HOT 2
- 按组一同注册命令的关键词 内容 权限 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nonebot.