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
项目接口调用 openPlatform->code_template->list()获取获取小程序模板列表时,报502错误。
openPlatform->code_template->list()
检查过fpm网关和Nginx日志,发现,接口返回的header里把微信接口返回的信息带上了,导致header过长,无法正常返回:
upstream sent too big header while reading response header from upstream
配置:
$config = [ 'app_id' => 'xxx', 'secret' => 'xxx', 'token' => 'xxx', 'aes_key' => 'xxx', ]; $this->openPlatform = Factory::openPlatform($config);
接口调用(关键代码):
$result = $this->openPlatform->code_template->list(); $result['template_list'] = [current($result['template_list'])]; //在此处写入log到数据库,result数据正常写入 //...此处省略写数据库log查错的代码 return $result;
在配置中添加日志配置log后,问题才得到解决。
log
The text was updated successfully, but these errors were encountered:
https://github.com/w7corp/easywechat/releases/tag/4.3.4
Sorry, something went wrong.
这个应该是nginx也有bug docker-library/php#878
No branches or pull requests
我用的环境
问题及现象
项目接口调用
openPlatform->code_template->list()
获取获取小程序模板列表时,报502错误。检查过fpm网关和Nginx日志,发现,接口返回的header里把微信接口返回的信息带上了,导致header过长,无法正常返回:
代码片段:
配置:
接口调用(关键代码):
在配置中添加日志配置
log
后,问题才得到解决。希望做以下修改:
The text was updated successfully, but these errors were encountered: