作者:妩媚芙蓉糕 | 来源:互联网 | 2023-08-04 18:47
| Q | A
| ------------------- | -----
| Bug report? | yes
| Feature request? | yes/no
| Swoft version | 1.0.0-1.0.6
| Swoole version | 4.0.2 (by
)
| PHP version | 7.1.19 (by
)
| Runtime environment | /CentOS 7/Ubuntu/Docker etc.
Details
Provide minimal script to reproduce the issue
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| php
// Warning: Invalid argument supplied for foreach() in /home/wwwroot/swoft/vendor/swoft/http-client/src/HttpCoResult.php on line 51
object(Swoft\Http\Message\Base\Response)#1776 (8) {
["reasonPhrase":protected]=>
string(21) "Internal Server Error"
["statusCode":protected]=>
int(500)
["charset":protected]=>
string(5) "utf-8"
["attributes":"Swoft\Http\Message\Base\Response":private]=>
array(0) {
}
["headerNames":protected]=>
NULL
["headers":protected]=>
array(0) {
}
["protocol":protected]=>
string(3) "1.1"
["stream":protected]=>
object(Swoft\Http\Message\Stream\SwooleStream)#1781 (2) {
["contents":protected]=>
string(0) ""
["size":protected]=>
int(0)
}
}
RPC service register success by consul ! tcp=172.17.0.2:8099 |
该提问来源于开源项目:swoft-cloud/swoft
https://github.com/swoft-cloud/swoft-component/pull/187