-
Notifications
You must be signed in to change notification settings - Fork 589
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
[Bug] Telegram 推送不了 #491
Comments
请问是参考这里填写的么?https://qd-today.github.io/qd/zh_CN/toolbox/pusher.html#telegram-bot-%E6%8E%A8%E9%80%81 如果是的话可以开启DEBUG模式看一看具体日志 |
幫我同學回答~
|
其中一個function 報錯了。可是具體不知道怎麼回事。sent to telegram error... |
删除后面所有的分号试下 |
試過了一樣無效。 |
Line 205 in 4d9640d
额额,这样好像没有用,或许是 Line 40 in 4d9640d
这里抛出的异常 或许可以将这一行改成 raise Exception(f'response error,status: {res.status}, reason:{res.reason}, text: {text}') 试一下
|
代回答:
TG無法用之後,想用email,按照文檔上的說明,設定了env variables之後還是不行,... 發現沒有收到email,日志裡有:
|
domain可以配置为 Line 29 in 4d9640d
这里配置 |
謝謝,配置了.... (Telegrtam還是不行,也沒有任何錯誤的LOG>.....)唉,不過email 配置,他log說有送出,可是沒收到... domain的我寫的是我email server 的FQDN (mail.myexample.com)
|
* refactor(libs&main): 🦄 优化代码和 logger 格式和静态类型 by pylint/flake8/mypy * Bugfix(logger): 🐛 修复部分日志不显示错误详情 #491 需打开 config.traceback_print 开关 * Change(libs): 📝 修改解析Url方式 * refactor(db&web): 🦄 优化代码和 logger 格式和静态类型 * refactor(web): 🦄 合并 logger 和错误栈打印 * Typo(web): ✏️ 修复输出文本显示 * Change(web): 📝 优化 for 循环调试显示 * Bugfix(web): 🐛 修复无法跳转发布项详情 * Bugfix(web): 🐛 发布模板时会在循环内修改模板 * Bugfix(web): 🐛 删除公开模板时自动取消发布请求 * Bugfix(web): 🐛 修复任务定时开关设置 * Change(config): 📝 运行自定义单用户拥有记事本最大数量配置
@SupercoolBD 这是我的配置格式(最后这个自定义域名是我的tg代理)
我这里是20230821版本,这个配置下tg能够正常推送 |
现在可以升级至最新 [E 240203 23:00:30 QD.Http.Funcs funcs:202] Sent to Telegram error:
Traceback (most recent call last):
File "/usr/src/app/libs/funcs.py", line 194, in send2tg
async with session.post(link, json=d, verify_ssl=False, proxy=proxy, timeout=config.request_timeout) as res:
File "/usr/lib/python3.11/site-packages/aiohttp/client.py", line 1167, in __aenter__
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/aiohttp/client.py", line 493, in _request
with timer:
File "/usr/lib/python3.11/site-packages/aiohttp/helpers.py", line 725, in __exit__
raise asyncio.TimeoutError from None
TimeoutError 可以看出来是请求超时了, 从你的日志 [I 240120 22:15:54 tornado.access web:2344] 200 POST /user/1/regpush (162.158.186.204) 30365.18ms 看到刚好是 30 秒的请求响应, 因此大概率也是请求超时. 建议检查一下看是不是你的容器或网络无法访问 Telegram. |
Verify steps
QD Version
20230821
Bug on OS
Linux
Bug on Platform
Docker/Linux 64位
To Reproduce
按照步驟填寫完畢之後,推送失敗。不在內地沒有牆。

Describe the Bug
如圖所示推送失敗。沒有原因。

QD config
QD log
Expected behavior
正常推送
Screenshots
No response
The text was updated successfully, but these errors were encountered: