You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[INFO][2025-01-10 03:40:43][chat_gpt_bot.py:57] - [CHATGPT] query=你好,测试企业微信机器人
[ERROR][2025-01-10 03:40:45][chat_channel.py:291] - [chat_channel] sendMsg error: 'NoneType' object is not subscriptable
[ERROR][2025-01-10 03:40:45][chat_channel.py:294] - 'NoneType' object is not subscriptable
Traceback (most recent call last):
File "/app/channel/chat_channel.py", line 289, in _send
self.send(reply, context)
File "/app/channel/wechatcom/wechatcomapp_channel.py", line 60, in send
self.client.message.send_text(self.agent_id, receiver, text)
File "/usr/local/lib/python3.10/site-packages/wechatpy/enterprise/client/api/message.py", line 62, in send_text
return self.send(
File "/usr/local/lib/python3.10/site-packages/wechatpy/enterprise/client/api/message.py", line 58, in send
return self._post('message/send', data=data)
File "/usr/local/lib/python3.10/site-packages/wechatpy/client/api/base.py", line 19, in _post
return self._client.post(url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/wechatpy/client/base.py", line 182, in post
return self._request(
File "/usr/local/lib/python3.10/site-packages/wechatpy/client/base.py", line 77, in request
kwargs['params']['access_token'] = self.access_token
File "/usr/local/lib/python3.10/site-packages/wechatpy/client/base.py", line 238, in access_token
access_token = self.session.get(self.access_token_key)
File "/usr/local/lib/python3.10/site-packages/wechatpy/enterprise/client/init.py", line 43, in access_token_key
return '{0}{1}_access_token'.format(self.corp_id, self.secret[:10])
TypeError: 'NoneType' object is not subscriptable
前置确认
操作系统类型?
Linux
运行的python版本是?
python 3.7
使用的chatgpt-on-wechat版本是?
Latest Release
运行的
channel
类型是?other
复现步骤 🕹
[INFO][2025-01-10 03:40:43][chat_gpt_bot.py:57] - [CHATGPT] query=你好,测试企业微信机器人
[ERROR][2025-01-10 03:40:45][chat_channel.py:291] - [chat_channel] sendMsg error: 'NoneType' object is not subscriptable
[ERROR][2025-01-10 03:40:45][chat_channel.py:294] - 'NoneType' object is not subscriptable
Traceback (most recent call last):
File "/app/channel/chat_channel.py", line 289, in _send
self.send(reply, context)
File "/app/channel/wechatcom/wechatcomapp_channel.py", line 60, in send
self.client.message.send_text(self.agent_id, receiver, text)
File "/usr/local/lib/python3.10/site-packages/wechatpy/enterprise/client/api/message.py", line 62, in send_text
return self.send(
File "/usr/local/lib/python3.10/site-packages/wechatpy/enterprise/client/api/message.py", line 58, in send
return self._post('message/send', data=data)
File "/usr/local/lib/python3.10/site-packages/wechatpy/client/api/base.py", line 19, in _post
return self._client.post(url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/wechatpy/client/base.py", line 182, in post
return self._request(
File "/usr/local/lib/python3.10/site-packages/wechatpy/client/base.py", line 77, in request
kwargs['params']['access_token'] = self.access_token
File "/usr/local/lib/python3.10/site-packages/wechatpy/client/base.py", line 238, in access_token
access_token = self.session.get(self.access_token_key)
File "/usr/local/lib/python3.10/site-packages/wechatpy/enterprise/client/init.py", line 43, in access_token_key
return '{0}{1}_access_token'.format(self.corp_id, self.secret[:10])
TypeError: 'NoneType' object is not subscriptable
问题描述 😯
企业微信回复响应时报错
终端日志 📒
The text was updated successfully, but these errors were encountered: