Skip to main content
1-Visitor
July 22, 2021
Question

Notify timeout error to client program from thingworx service

  • July 22, 2021
  • 1 reply
  • 1476 views

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.

1 reply

Support
July 29, 2021

Hi @gvyakaranam

 

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

 

Regards.

 

--Sharon

 

 

1-Visitor
July 30, 2021

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