Guzzle和XDebug超时

我正在使用Xdebug来debugging代码与guzzle curl调用。

在其他的代码中,Xedebug工作正常。

但是每当用Guzzle进行客户呼叫时,我所得到的只是一个超时。

我在用:

  • PhpStorm 2017.2
  • Docker,带图像richarvey/nginx-php-fpm:latest (nginx + php fpm)
  • 在PHP 7.1上的Xdebug

这是代码片断,它冻结在哪里:

  public function fetch(): string { $content = ''; $completePath = self::FETCH_PATH . $this->id; $request = $this->httClient->get($completePath); if ($request->getStatusCode() == 200) { $content = $request->getBody()->getContents(); } return $content; }