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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

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

ttom1
1-Visitor

"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
jgorsline
12-Amethyst
(To:ttom1)

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)"}

ttom1
1-Visitor
(To:jgorsline)

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)"

Announcements


Top Tags