Discussions

Ask a Question
Back to All

API Request Successful but no Data returned

I'm running into an issue on select environments where I make a Get request and it does not show any errors but no data is returned. I have tried multiple endpoints but nothing seems to work. I have seen this before but it randomly just starts working but that's not a great answer. Here is one of the requests I was attempting, any insight is greatly appreciated.

jQuery.ajax( "/api/Party?limit=1" , {
type: "GET",
headers: {
"RequestVerificationToken": document.getElementById("__RequestVerificationToken").value
},
"dataType": "json",
"contentType": "application/json"

   });