cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

How to get response Status of Content Loader functions

NERaj
13-Aquamarine

How to get response Status of Content Loader functions

Hi,

 

Is there a way to print response status code of Content loader functions such as GetCookies, GetJSON, PostJSON, LoadJSON....etc

 

Please provide some idea to solve above problem?

 

Thingworx Version: 8.2.5

 

Thanks,

Nagaraj

ACCEPTED SOLUTION

Accepted Solutions
Constantine
17-Peridot
(To:NERaj)

Hello Nagaraj,

 

You can get it by wrapping your call in try/catch. As far as I remember, any response except for 2xx should throw an exception, which you can parse in the catch block.

 

/ Constantine

View solution in original post

2 REPLIES 2
Constantine
17-Peridot
(To:NERaj)

Hello Nagaraj,

 

You can get it by wrapping your call in try/catch. As far as I remember, any response except for 2xx should throw an exception, which you can parse in the catch block.

 

/ Constantine

slangley
23-Emerald II
(To:NERaj)

HI @NERaj.

 

If you feel the response from Constantine answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

Announcements


Top Tags