You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"log":"\u001B[41m\u001B[30mfail\u001B[39m\u001B[22m\u001B[49m: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id \"0HMT43IG3F4VK\", Request id \"0HMT43IG3F4VK:00000010\": An unhandled exception was thrown by the application.
SIL.DataAccess.DuplicateKeyException: The inserted/updated entity has the same key as an existing entity.
at SIL.DataAccess.MongoRepository`1.TryCatchDuplicate[TR](Func`1 func) in /app/src/SIL.DataAccess/MongoRepository.cs:line 242
at SIL.DataAccess.MongoRepository`1.InsertAsync(T entity, CancellationToken cancellationToken) in /app/src/SIL.DataAccess/MongoRepository.cs:line 72
at Serval.DataFiles.Services.DataFileService.DeleteAsync(String id, CancellationToken cancellationToken) in /app/src/Serval.DataFiles/Services/DataFileService.cs:line 123
at Serval.DataFiles.Controllers.DataFilesController.DeleteAsync(String id, CancellationToken cancellationToken) in /app/src/Serval.DataFiles/Controllers/DataFilesController.cs:line 211
at lambda_method164(Closure , Object )
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ExceptionContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
","stream":"stdout","time":"2023-08-31T08:40:07.663424153Z","type":"fail","source":"Microsoft.AspNetCore.Server.Kestrel"}
There is a race condition that will cause an error if you try to delete the file twice at "nearly" the same time.
The text was updated successfully, but these errors were encountered:
There is a race condition that will cause an error if you try to delete the file twice at "nearly" the same time.
The text was updated successfully, but these errors were encountered: