Skip to main content
Jul 22, 2021 1:33 PM UTC
Question

Notify timeout error to client program from thingworx service

Hi,

 

I am working on creating custom service in thingworx composer and implemented Try-Catch.

But could not able fetch the exception details from client program using c# or httpClient.

 

Getting generic error message like "Response status code does not indicate success: 500 ()."

 

How to collect actual service error message/code from client program like timeout error or other... based on error., use retry mechanism.

 

Thanks,

Gopi.

3 replies

Jul 29, 2021 7:14 PM UTC

Hi @gvyakaranam

 

Here's another community post with an example.  For more detailed information, check out this article.

 

Regards.

 

--Sharon

 

 

Jul 30, 2021 9:26 AM UTC

Hi Sharon,

 

Thanks for the information. But these articles are showing to log at server level, and it can be visible in script log.

But I would like to respond/inform this error info to client request instead of 500 error code. Kindly let me know on the same.

 

Thanks

Gopi