cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
346
Views
0
Helpful
2
Replies

Call to get system info in Postman not working in javascript

ajdmbs
Level 1
Level 1

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

2 Replies 2

Marcel Zehnder
Spotlight
Spotlight

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?

ajdmbs
Level 1
Level 1

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.