REST BAQs trying to learn... No data returned

So I am messing around with REST and BAQs and have a simple page I am trying to return data to. This is all new to me so just seeing what I can accomplish. I can’t get any data to even show in the console. I created the jquery.js and added Ajax extension. I must be overlooking something very simple, anything you can see?

var settings = {

    "url": "https://erp10/ERP102500/api/v1/BaqSvc/66457-OpenClaims",

    "method": "GET",

    "timeout": 0,

    "headers": {

      "Authorization": ["Basic xxxxxxx=", "Basic xxxxxx=="]

    },

  };

    alert("Start")

  $.ajax(settings).done(function (response) {

  if (response == 'true'){

    alert("DataResponse")

  }

  else{

    alert("NoResponse")

  }

    Console.log(response)

  

  });

  alert("done")

Have you tried Postman?

And that Authorization doesn’t look right.

Yes Postman works, that is where the code came from. That is not the actual authorization I just took it out of the screenshot and code.

What is the result code you get, 200? 401? You can check it in your code or look into the browser’s developer tools.

Status is 500

OK so I started messing with the authentication cause that is where it seemed to be at. GOt 401 without authentication. Then I just deleted one of the Basic xxxx from the authorization so that there is only one and now I am getting my data. The code was from postman so not sure why the authorization issue.