Guzzle and XDebug timeout

Viewed 470

I am using Xdebug to debug code with guzzle curl calls.

In any other code, Xdebug works fine.

But whenever there are client calls with Guzzle, All I get is a timeout.

I am using:

  • PhpStorm 2017.2
  • Docker, with image richarvey/nginx-php-fpm:latest (nginx+php fpm)
  • Xdebug on Php 7.1

here is the code snippet, where it freezes:

    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;
}
1 Answers
Related