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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

"TwApiException was cought" - getting this exception while invoking a service

ttom1
1-Newbie

"TwApiException was cought" - getting this exception while invoking a service

HI All,


I wrote a service in the server. This service will throw an exception on some failure cases.

The js code snippet which i wrote in the server to throw the exception is below:


if

{

}

else {

    throw ("A device with ID  already exists.");

}

Later i developed a .NET application which uses C# SDK v5.6.5 and invoked the service.

My expectation was that, i must get the exception string in the failure scenarios.

But on failure scenarios, i am getting below exception in the client application:

"TwApiException was cought"

"Error invoking Service for Entity. Internal Server Error. (Code 1110)"

2 REPLIES 2

Tobin,

We've had a customer see this error before. Can you take a look at this discussion and let us know if this is also what you're seeing and if any of the suggestions helped with your issue?
.NET SDK help - {"Error invoking Service for Entity. Internal Server Error. (Code 1110)"}

Jeremy,

I had gone through this link earlier. But this is a different problem

Basically what i would like to know is that:

Can i receive an exception thrown from TWX service, in the client application where i call this service?

Currently i am getting an entirely different exception, i.e.

"TwApiException was cought"

"Error invoking Service for Entity. Internal Server Error. (Code 1110)"

Top Tags