Error posting request RRS feed

  • Question

  • User1686163005 posted

    I am trying to  invoke a WebApi service to do a db lookup and return the results. The response is an error as given below :



          <Session.loginRs status="success" sessionID="75882415:B823443B:A671B799:F4162B3B:7A35D91D:48E90C41" expiredPassword="0" fullName="Express Admin" roleBasedSecurity="1" entityID="1" userID="1" partyID="A563505365246C18" consumerID="0" />

          <ReferenceData.getRefDataRs status="failure">

             <errors exceptionType="AggregateException">

                <error Source="mscorlib" TargetSite="TResult GetResultCore(Boolean)">One or more errors occurred.</error>

                <error Source="System.Net.Http" TargetSite="System.Net.Http.HttpResponseMessage EnsureSuccessStatusCode()">Response status code does not indicate success: 500 (Internal Server Error).</error>

                <stack>   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()</stack>

                <stack>   at DuckCreek.Server.ReferenceData.GenericClient`1.&lt;GetMultipleItemsRequest&gt;d__8.MoveNext()</stack>

                <stack>   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)</stack>

                <stack>   at DuckCreek.Server.ReferenceData.RefDataRequests.GetReferenceDataMarshalled(String apiURL, IDictionary`2 parameters, IDictionary`2 queryStrings, Boolean isOneResult)</stack>

                <stack>   at DuckCreek.Server.ReferenceData.RefDataRequests.getRefDataRq(XmlElement xmlElement, Session activeSession)</stack>



          <Session.closeRs status="success" />



    What does this mean ? 

    Friday, December 1, 2017 3:56 PM

All replies

  • User475983607 posted

    A 500 error means the service had a problem that it could not recover from.  This can be due an improperly formatted request, invalid parameters, or the code service code has a bug.   I would start by placing a breakpoint in the server action and see if the action is being called.  

    At this point there is not enough information in the post to make a guess.  We need at least enough code to reproduce the issue.

    Friday, December 1, 2017 4:45 PM
  • User991499041 posted

    Hi S.A.P,

    Welcome to ASP.NET Forums.

    You are getting a 500 Internal Server error from somewhere else in your sever code.  We can't reproduce the issue.

    To obtain the exception you could attach the Visual Studio debugger to the IIS process using the remote debugger. 

    If you don't have the required access to the remote machine, perhaps run IIS on your development workstation and try deploying the app locally, and debug.



    Wednesday, December 6, 2017 6:28 AM