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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Notify timeout error to client program from thingworx service

gvyakaranam
12-Amethyst

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 3
slangley
23-Emerald II
(To:gvyakaranam)

Hi @gvyakaranam

 

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

 

Regards.

 

--Sharon

 

 

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

slangley
23-Emerald II
(To:slangley)

Hi @gvyakaranam.

 

The resource provided was just an example of something you can do--it doesn't have to be logging. 

 

Regards.

 

--Sharon

Announcements


Top Tags