Skip to content

Failed to decode request contents. #2724

Closed Answered by puresai
cbzmqx asked this question in Q&A
Discussion options

You must be logged in to vote

遇到同样的问题:

EasyWeChat\Kernel\Exceptions\BadRequestException: Failed to decode request contents. in
vendor/w7corp/easywechat/src/Kernel/Message.php:64<br />
Stack trace:<br />
#0 vendor/w7corp/easywechat/src/Kernel/Message.php(39): EasyWeChat\Kernel\Message::format('')<br />
#1 vendor/w7corp/easywechat/src/Work/Server.php(266): EasyWeChat\Kernel\Message::createFromRequest(Object(Nyholm\Psr7\ServerRequest))<br />
#2 vendor/w7corp/easywechat/src/Work/Server.php(60): EasyWeChat\Work\Server->getRequestMessage(Object(Nyholm\Psr7\ServerRequest))<br />
#3 app/controller/qywxController.php(49): EasyWeChat\Work\Server->serve()<br />

貌似是没有解析出 get 参数

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@TheSaltwaterRoom
Comment options

@overtrue
Comment options

@TheSaltwaterRoom
Comment options

Comment options

You must be logged in to vote
2 replies
@reatang
Comment options

@puresai
Comment options

Answer selected by cbzmqx
Comment options

You must be logged in to vote
1 reply
@puresai
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants