chatgpt-wechat icon indicating copy to clipboard operation
chatgpt-wechat copied to clipboard

添加CustomerServiceSecret到默认配置文件,不然会报错

Open ensonfun opened this issue 1 year ago • 4 comments
trafficstars

chat/service/chat/api/etc/chat-api.yaml.bak 中缺少 CustomerServiceSecret,会导致报错,此为必选项,应该加入到配置文件中

ensonfun avatar Jan 15 '24 02:01 ensonfun

因为企业微信api变更,新版本舍弃了之前的做法,目前是应用绑定客服,所以配置文件也要跟着变更, 更新代码后, 重新build,再试试呢

whyiyhw avatar Jan 15 '24 03:01 whyiyhw

因为企业微信api变更,新版本舍弃了之前的做法,目前是应用绑定客服,所以配置文件也要跟着变更, 更新代码后, 重新build,再试试呢

会报这个错误: chat-api | 客服消息 获取body err: WorkwxClientError { Code: 41001, Msg: "access_token missing, hint: [1705303031315353413426376], from ip: 107.xxx.xxx.xxx, more info at https://open.work.weixin.qq.com/devtool/query?e=41001" }

ensonfun avatar Jan 15 '24 07:01 ensonfun

https://developer.work.weixin.qq.com/community/question/detail?content_id=16545017483768547791 看下官方api 的变更 image 已经不需要这个 secret 了,有这个设置的,停用掉,就可以使用新的配置了

whyiyhw avatar Jan 15 '24 07:01 whyiyhw

因为企业微信api变更,新版本舍弃了之前的做法,目前是应用绑定客服,所以配置文件也要跟着变更, 更新代码后, 重新build,再试试呢

会报这个错误: chat-api | 客服消息 获取body err: WorkwxClientError { Code: 41001, Msg: "access_token missing, hint: [1705303031315353413426376], from ip: 107.xxx.xxx.xxx, more info at https://open.work.weixin.qq.com/devtool/query?e=41001" }

暂时没有找到停用的方式,从实际运行情况来看,我这里这个参数是必须的,这块考虑兼容性可以加上,或者在文档中补充下

ensonfun avatar Jan 16 '24 08:01 ensonfun