We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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及提交需求服务,不负责解答开发问题,请勿发表开发问题, 如果您需要这方面的帮助,请移步问答社区:https://weixin.senparc.com/QA ***)
问答社区
消息模拟工具http://sdk.weixin.senparc.com/SimulateTool 创建的请求无法正常的被NetCore版本项目读取?(Request.Body为空)
是不是这里处理的有问题(试过手动改了ContentType为text/xml之后是能用的). 暂时没有去确认微信发的ContentType是啥. https://github.com/JeffreySu/WeiXinMPSDK/blob/v14.10.0/src/Senparc.Weixin/Senparc.Weixin/Utilities/HttpUtility/RequestUtility.Post.cs#L273 https://github.com/JeffreySu/WeiXinMPSDK/blob/v14.10.0/src/Senparc.Weixin/Senparc.Weixin/Utilities/HttpUtility/RequestUtility.Post.cs#L166
text/xml
4.20.0
Email:
(也可将问题地址及联系方式发送到 www.jeffrey.su@gmail.com)
The text was updated successfully, but these errors were encountered:
@yyjdelete 这个类型本身不重要,应该是.net core在解析数据的过程中,需要使用到这个ContentType,推测和微信无关。我们会进一步进行确认。 另外给Post犯法加上ContentType可选的参数确实也是一个可以优化的地方,谢谢提醒!
Sorry, something went wrong.
在Senparc.Weixin.MP.MvcExtension中提供EnableRequestRewind中间件,开启netcore2的R…
ef7fc31
…equestRewind模式令Request.Body可以二次读取,以解决某些特殊情况下netcore默认机制导致的Request.Body为空而引发的WeixinSDK错误的问题。JeffreySu#1090
@lishewen 这里说的问题已经在你提供的最新更新中解决了,是吧?
No branches or pull requests
(*** 此版块专为反馈bug及提交需求服务,不负责解答开发问题,请勿发表开发问题,
如果您需要这方面的帮助,请移步
问答社区
:https://weixin.senparc.com/QA ***)问题描述
消息模拟工具http://sdk.weixin.senparc.com/SimulateTool 创建的请求无法正常的被NetCore版本项目读取?(Request.Body为空)
是不是这里处理的有问题(试过手动改了ContentType为
text/xml
之后是能用的). 暂时没有去确认微信发的ContentType是啥.https://github.com/JeffreySu/WeiXinMPSDK/blob/v14.10.0/src/Senparc.Weixin/Senparc.Weixin/Utilities/HttpUtility/RequestUtility.Post.cs#L273
https://github.com/JeffreySu/WeiXinMPSDK/blob/v14.10.0/src/Senparc.Weixin/Senparc.Weixin/Utilities/HttpUtility/RequestUtility.Post.cs#L166
微信官方文档 URL
微信官方文档快照(直接复制关键内容到下方)
发现问题的模块
4.20.0
模块对应的.net版本
开发环境
缓存环境
联系方式
Email:
(也可将问题地址及联系方式发送到 www.jeffrey.su@gmail.com)
The text was updated successfully, but these errors were encountered: