如何解决cURL错误28:90001毫秒后操作超时,收到0个字节

时间:2019-07-11 13:39:55

标签: php api curl laravel-5

我正在使用代码接收运行API测试,但出现此错误

"[GuzzleHttp\Exception\ConnectException] cURL error 28: Operation timed out after 90001 milliseconds with 0 bytes received"

我已经浏览了互联网,发现这篇Codeception REST timeout issue文章我一直遵循,但仍然遇到相同的错误。请在下面查看我的api.suite.yml

class_name: ApiTester
modules:
  enabled:
    - \Helper\Api
    - REST
    - Laravel5
    - Asserts
    - Db
  config:
    REST:
      depends: PhpBrowser
    PhpBrowser:
      url: 'http://localhost:8001'
      curl:
        CURLOPT_TIMEOUT: 90

0 个答案:

没有答案