title: Server error: `GET http://127.0.0.1:8081` resulted in a `503 Service Unavailable` response:
body: <p>I am trying to build a reccomendationn engine for my website.I am using PHP with Laravel for the back-end.I want to build a reccomendation engine so I decided to use Nodejs for it.....</p>
  
  <p>The nodejs reccomendation engine uses GER and produces reccomendations.When I go to 
  <code>localhost:8081</code> <strong>in my browser</strong> I get what I expect <strong>perfectly</strong>.My site is running on localhost:8000 so I need to bring in the recommendations from localhost:8081 to `localhost:8000/reccomendations'.For this I decided to use <strong>Guzzle</strong>.</p>
  
  <p>This is my controller(a part of it) in laravel:</p>
  
  <pre><code>//RECCOMMENDATION SYSTEM
  
      public function showReccPosts(){
          $person='alice';
  
          //The URL you want to send a cURL proxy request to.
          $client = new Client();
          $request = $client-&gt;get('http://127.0.0.1:8081', [
              'config' =&gt; [
                  'curl' =&gt; [
                      'CURLOPT_PROXY' =&gt; 'asoju.unilag.edu.ng:3128',
                      'CURLOPT_HTTPPROXYTUNNEL' =&gt; 1,
                  ]
                 ]
              ]);
          $result = $request-&gt;getBody()-&gt;getContents();
  
         return view('reccomended.index',compact('result'));
  
      }
  </code></pre>
  
  <p>If I try it with an external website like google.com it works perfectly.
  But if i try it with 127.0.0.1:8000 it gives me this error:</p>
  
  <pre><code>GuzzleHttp \ Exception \ ServerException (503)
  Server error: `GET http://127.0.0.1:8081` resulted in a `503 Service Unavailable` response: &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; &lt;html&gt;&lt;head&gt; &lt;meta type="copy (truncated...)
  </code></pre>
  
  <p>I have no idea what is going on.503 is  a generic error message.</p>