codeception jenkins GuzzleHttp cURL错误52:来自服务器的空回复

时间:2017-03-18 03:10:26

标签: php apache out-of-memory codeception

当我通过jenkins运行测试时,api ApiTester 的测试会出现错误。

  

[GuzzleHttp \ Exception \ ConnectException] cURL错误52:来自服务器的空回复(请参阅http://curl.haxx.se/libcurl/c/libcurl errors.html)

单元测试正常运行 在当地所有测试都有效 仅在jenkins服务器上 ApiTester 失败。

版本(在本地和Jenkins服务器中相同)
PHP:7.0.16-1~docdeb + 8.1
Apache:Apache / 2.4.10
Xdebug:2.5.1

卷曲测试(curl http://dev.ci.api.flope.com/api/test -v):

* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to dev.ci.api.flope.com (127.0.0.1) port 80 (#0)
> GET /api/test HTTP/1.1
> User-Agent: curl/7.38.0
> Host: dev.ci.api.flope.com
> Accept: */*
> 
< HTTP/1.1 200 OK
< Date: Sat, 18 Mar 2017 02:46:14 GMT
* Server Apache/2.4.10 (Debian) is not blacklisted
< Server: Apache/2.4.10 (Debian)
< Status: 200 OK
< Content-Length: 33
< Content-Type: text/html; charset=UTF-8
< 
* Connection #0 to host dev.ci.api.flope.com left intact
<html><body>Hello 3</body></html>

api.suite.yml

class_name: ApiTester
modules:
    enabled:
        - \Helper\Api
        - REST:
            url: http://dev.ci.api.flope.com/api/
            depends: PhpBrowser
            part: Json
        - Asserts
        - Db

评论更新:

  

在apache日志中:内存不足我看到了虚拟主机日志
  但记忆总数:3962,使用:2203和免费:1758

0 个答案:

没有答案
相关问题