Skip to content
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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ensonfun
Copy link

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

@whyiyhw
Copy link
Owner

whyiyhw commented Jan 15, 2024

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

@ensonfun
Copy link
Author

ensonfun commented Jan 15, 2024

因为企业微信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" }

@whyiyhw
Copy link
Owner

whyiyhw commented Jan 15, 2024

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

@ensonfun
Copy link
Author

因为企业微信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" }

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants