title: Guzzle hangs communicating two apis
body: <p>in my application I have two laravel 5.2 servers running and they need to interact with each other to get resources using guzzle.</p>
  
  <p>In my server 1, I use League Transformer to return some data, but the data needs to include a resource from my server 2
  I get the data using guzzle in the transform function:</p>
  
  <pre><code>public function transform(MyModel $model) {
  
          $client = new Client();
          $result = $client-&gt;request('GET', 'localhost:8000/api/companies/'.$model-&gt;company_id);
          $company= $result-&gt;getBody()-&gt;getContents();
  
          $data = [
          'id' =&gt; (int) $model-&gt;id,
          'name' =&gt; $model-&gt;name,
          'status' =&gt; $model-&gt;status,
          ];
  
          $data['company'] = json_decode($company);
          return $data;
      }
  </code></pre>
  
  <p>When I make a request to get this resource to <code>localhost:4040/api/models/1</code>
  I get this response:</p>
  
  <pre><code>"data": {
      "id": 1,
      "name": "John Doe",
      "status": "active",
      "company": {
          "data": {
              "id": 1,
              "name": "My Company",
          }
      }
  </code></pre>
  
  <p>The problem I'm facing is when I need to access MyModel (stored in server 1) from server 2 using guzzle, because I need to make a request to server 1:</p>
  
  <pre><code>$result = $client-&gt;request('GET', 'localhost:4040/api/models/'.$model-&gt;_id);
  </code></pre>
  
  <p>and server 1 needs to make a request to server 2 (in the transformer) to get the company.
  This makes the client to wait forever and never get a response. I tried using Async request, but I get an empty response, and if I force the promise to wait, it also hangs forever.</p>