-
Notifications
You must be signed in to change notification settings - Fork 219
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
RuntimeError: {"ret":500,"msg":null} 请问如何解决? #228
Comments
删除config.json中gewechat_token试试 |
谢谢回复,删除gewechat_token后,重启容器。日志如下,没有报错了,但是发消息后没有任何反应。
|
我也有同样的问题,同求 |
我也是 |
可以 通过手动调用gewechat的 退出接口 来将状态恢复为未登录状态,进而重新登录。(如果第一次手工调用logout接口返回500的话,可以多试几次。) https://apifox.com/apidoc/shared-69ba62ca-cb7d-437e-85e4-6f3d3df271b1/api-196794630 |
非常感谢。 |
前置确认
操作系统类型?
Linux
运行的python版本是?
python 3.7
使用的dify-on-wechat版本是?
Latest Release
运行的
channel
类型是?other
复现步骤 🕹
No response
问题描述 😯
你好,我使用的是容器部署,配置的gewechat channel,日志中提示“AppID: wx_zH_Y4UmWDH 已在线,无需登录”和 “[gewechat] 收到gewechat服务发送的回调测试消息”,但接着就有如下报错,无法正常使用。请问如何解决,谢谢。
AppID: wx_zH_Y4UmWDH 已在线,无需登录
[DEBUG][2025-02-05 22:50:19][gewechat_channel.py:183] - [gewechat] 收到gewechat服务发送的回调测试消息
172.30.0.1:39616 - - [05/Feb/2025 22:50:19] "HTTP/1.1 POST /v2/api/callback/collect" - 200 OK
Exception in thread Thread-2 (set_callback):
Traceback (most recent call last):
File "/app/lib/gewechat/util/http_util.py", line 20, in post_json
raise RuntimeError(response.text)
RuntimeError: {"ret":500,"msg":null}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/app/channel/gewechat/gewechat_channel.py", line 88, in set_callback
callback_resp = self.client.set_callback(self.token, callback_url)
File "/app/lib/gewechat/client.py", line 257, in set_callback
return self._login_api.set_callback(token, callback_url)
File "/app/lib/gewechat/api/login_api.py", line 21, in set_callback
return post_json(self.base_url, "/tools/setCallback", self.token, param)
File "/app/lib/gewechat/util/http_util.py", line 23, in post_json
raise RuntimeError(str(e))
RuntimeError: {"ret":500,"msg":null}
终端日志 📒
The text was updated successfully, but these errors were encountered: