title: Message":"There was an error processing the request.","StackTrace":"","ExceptionType" - JQUERY
body: <p>Here is my code, I keep on getting the same error response.</p>
  
  <pre><code>"{"Message":"There was an error processing the request.","StackTrace":"","ExceptionType":""}"
  </code></pre>
  
  <p>I can't figure it out. I'm using Eloqua APIs to get basic information such as total number of accounts, landing pages, users, images, etc. It's weird because I tried the API on POSTMAN application and it did work perfectly <a href="https://i.stack.imgur.com/gHImi.png" rel="nofollow noreferrer">Screenshot of postman response to the API</a></p>
  
  <p><strong>PHP</strong></p>
  
  <pre><code>$objetos = array("data/accounts", "data/contacts", "assets/emails", "assets/landingPages", "assets/images", "assets/forms", "system/users", "assets/microsites", "assets/customObjects");
  
  for ($i = 0; $i &lt; 9; $i++){
  
     $url = 'http://secure.p03.eloqua.com/API/REST/1.0/' . $objetos[$i] . '?count=1';
  
     $ch=curl_init();
     curl_setopt($ch,CURLOPT_URL,$url);
  
     $headers = array(
         'Content-type: application/json',
         'Authorization: BASIC "MY TOKEN"'
     );
     curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  
     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
     curl_setopt($ch, CURLOPT_CAINFO, getcwd() ."/EloquaApi_lvl1.cer");
  
     curl_setopt($ch, CURLOPT_POST, 0);
     curl_setopt($ch, CURLOPT_HTTPGET, 1);
  
     $data[$i] = curl_exec($ch);
     curl_close($ch);
  }
  echo json_encode($data);
  
   ?&gt;
  </code></pre>
  
  <p><strong>JS</strong></p>
  
  <pre><code>function getObjetos(){
  
  $.get("objetos.php", function (data) {
      console.log(data);
  }, "json").done(function (data) {
      console.log(data);
  
  // rest of my code 
  }
  </code></pre>
  
  <p><strong>Console</strong>
  <a href="https://i.stack.imgur.com/fDkxB.png" rel="nofollow noreferrer">console.log response (click for image)</a></p>