title: is that possible sending http request from lumen using guzzlehttp?
body: <p>actually i want to validate given token .. the validate code written in another lumen package. i have got some issues when i send request to validate token. i dont know why it's not working. cant use another api inside lumen ?</p>
  <p>if i use that check token api in postman <a href="https://i.stack.imgur.com/kSpJt.png" rel="nofollow noreferrer">https://i.stack.imgur.com/kSpJt.png</a>. it works fine. it's thrown error when i call that api inside other lumen package</p>
  <p>this is what i got when use this api in postman <a href="https://i.stack.imgur.com/hfFzk.png" rel="nofollow noreferrer">https://i.stack.imgur.com/hfFzk.png</a></p>
  <p>error log  <a href="https://i.stack.imgur.com/ds0oR.png" rel="nofollow noreferrer">https://i.stack.imgur.com/ds0oR.png</a></p>
  <pre><code>&lt;?php
  
  namespace App\Helpers;
  
  use App\Helpers\ResponseBuilder;
  
  class check_customer_token_verification 
  {
      public static function check($token, $vendor_id) 
      { 
          $client = new \GuzzleHttp\Client();
              $result = $client-&gt;post('dev.adiswar-crm.local/customer/crm/v-1-0-0/check-token', [
                  'form_params' =&gt; [
                      'token' =&gt; isset($token)?$token:'',
                      'vendor_id' =&gt; $vendor_id,
                  ]
              ]); 
  
          $res_data = json_decode($result-&gt;getBody()-&gt;getContents()); dd($res_data);
              if ($res_data-&gt;http_code == 401) {
                  return ResponseBuilder::responseResult(400, $res_data-&gt;message);
              }
          return $res_data;
      }
  } ```
  
  dump this api in postman. i got issue which is below
  
  
  ^ {#120
    +&quot;http_code&quot;: 400
    +&quot;message&quot;: &quot;&quot;&quot;
      Server error: `POST dev.adiswar-crm.local/customer/crm/v-1-0-0/check-token` resulted in a `500 Internal Server Error` response:
      &lt;!DOCTYPE html&gt;
      &lt;html&gt;
          &lt;head&gt;
              &lt;meta name=&quot;robots&quot; content=&quot;noindex,nofollow&quot; /&gt;
              &lt;style&gt;
              (truncated...)
      &quot;&quot;&quot;
  }```
  
  
  
     
  
  
   
  
  
    
  </code></pre>