abp icon indicating copy to clipboard operation
abp copied to clipboard

API Response Finish but LocalEventHandler has not finish

Open lajiv opened this issue 1 year ago • 4 comments

  • ABP Framework version: 8.0.4
  • User Interface :MVC
  • database provider:EF Core

Controller:

  [HttpPost]
  public async Task<bool> CreateAsync(CreateTestDto TestCreateInput)
  {
      await testAppService.CreateAsync(testCreateInput);

      return true;
  }

AppService:

 public override async Task<TestDto> CreateAsync(CreateTestDto testCreateInput)
 {
     ...

     await _localEventBus.PublishAsync(new ModelValidateEto()
     {
         ...
     });
     return ObjectMapper.Map<Test, TestDto>(testEntity);
 }

when i request in swagger, it return true,but localEventHandler not execute finish 企业微信截图_17235407571974 企业微信截图_17235407726691

but when i delete controller code return true ,it become normal

lajiv avatar Aug 13 '24 09:08 lajiv

Please share a simple test project.

maliming avatar Aug 16 '24 01:08 maliming

Hi, do you know if this issue is still open?

Pantex9 avatar Aug 26 '24 23:08 Pantex9

@maliming i create a new abp project,it run as normal.It seems to be caused by my project configuration

lajiv avatar Sep 02 '24 02:09 lajiv

It seems to be caused by my project configuration

Maybe. You can share the project if you can reproduce it.

maliming avatar Sep 02 '24 02:09 maliming

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 05:04 stale[bot]