Open Closed

Concurrency Check does not work as described in docs #3152


User avatar
0
dkaczor created
  • ABP Framework version: v5.1.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

I am testing behaviour of Concurrency Check. I followed the implementation described in docs. However, when there's conflict with concurrency stamps I do not get the expected error modal in my client (Angular) app. All I get is error page with "Unknown Error" message even though I see a 409 response in developer tools:

I found that this happens only when I call UpdateAsync on the repository exactly like in the documentation i.e. without autoSave: true parameter. When I add the autoSave: true parameter or call CurrentUnitOfWork.SaveChangesAsync() at the end I get expected error modal. My question is - is the documentation wrong for not pointing out that saving changes is required or is there something wrong in my implementation?


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share the error logs of HTTP status code 409?

    Also try to remove the app.UseUnitOfWork(); from the web project.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11