04-13-2023 10:56 AM
In the Finesse Basic User REST API lab, once I connect to the VPN, if I make a HTTP GET in Postman to https://hq-uccx.abc.inc:8445/finesse/api/SystemInfo it successfully retrieves the system information. However, when I make the same call in javascript/JQuery, I get a 499 error:
$.ajax({
type: "GET",
url: "https://hq-uccx.abc.inc:8445/finesse/api/SystemInfo",
success: function (json) { console.log(json); },
error: function (json) { console.log(json); }
});
This call doesn't require any authentication. Am I missing something in the ajax call? Or maybe the server is blocking ajax calls from my browser?
Thank you,
Alfredo
04-13-2023 03:05 PM - edited 04-13-2023 03:06 PM
Hi alfredo
i‘m not really fluent in jquery - however http 499 indicates that the client has closed the connection while the server is still processing the request. So this may be a timeout related issue. Whats your timeout and can you increase the timeout value?
04-13-2023 03:50 PM
Hi Marcel, thanks for the response.
I thought that too initially, so I set the timeout on the ajax call to 100 seconds and still got the same error. I'm thinking maybe I'm missing a header, or some configuration setting, but I'm not sure what it could be. The lab makes all its calls using Postman, but I need to be able to call the Finesse REST API from javascript.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide