Community
Showing results for 
Search instead for 
Do you mean 
Reply

500 API Response

New Member
Posts: 18
Country: USA

Re: 500 API Response

We are not using a service account and the user does have full access to that directory

Employee
Posts: 61
Country: USA

Re: 500 API Response

We run into something like this with our Act! Premium with shared database, We discovered that it is not only the user that needs access to the folder, but the API service needs access as well.  We couldn't get Network Services to write the attachment, so we had to change the app pool identity to a network account and add that account to the folder as well.

Employee
Posts: 61
Country: USA

Re: 500 API Response

I'm still building a lab with your configuration to duplicate this, but if you don't have time to try that, don't worry about it.  I will figure this out once my lab is setup.

Highlighted
New Member
Posts: 18
Country: USA

Re: 500 API Response

I was able to remove NetworkServices and add a network account with permissions to attachments. We will test this now

New Member
Posts: 6
Country: India

Re: 500 API Response

[ Edited ]

sburton,

Specially upload files calls are taking long time. Around 1.5 min taken to upload single pdf file. First we create document history and upload doc on that history id and next time when re-upload file, first delete attachment history and re-upload document on that same history id.

 

Anything you can suggest?

New Member
Posts: 18
Country: USA

Re: 500 API Response

Is there a way to submit a stack trace? I got the error to happen to a different endpoint using the supplied Swagger UI. The forum keeps removing my post anytime I add the code

New Member
Posts: 18
Country: USA

Re: 500 API Response

{
  "message": "An error has occurred.",
  "exceptionMessage": "Object synchronization method was called from an unsynchronized block of code.",
  "exceptionType": "System.ApplicationException",
  "stackTrace": "   at System.Threading.Mutex.ReleaseMutex()
   at act.web.api.Auth.ActUserInstanceSDK.EndUserSession()
   at act.web.api.Security.Principal.EndUserSession()
   at act.web.api.Security.SecureMessageAttribute.<ExecuteActionFilterAsync>b__9(Principal p)
   at Microsoft.Ajax.Utilities.AjaxMinExtensions.IfNotNull[TObject](TObject obj, Action`1 action)
   at act.web.api.Security.SecureMessageAttribute.<ExecuteActionFilterAsync>d__c.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.AuthenticationFilterResult.<ExecuteAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Cors.CorsMessageHandler.<SendAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNet.WebApi.Extensions.Compression.Server.BaseServerCompressionHandler.<SendAsync>d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.HttpServer.<SendAsync>d__0.MoveNext()"
}
Administrator
Posts: 985
Country: United_Kingdom

Re: 500 API Response

Sorry about that bsantore, the forum spam filter was removing your posts automatically. I've restored the post above containing the stack-trace!
New Member
Posts: 18
Country: USA

Re: 500 API Response

No worries. I figured as much.