Hi enisn :
for example i got a IDistributedEventHandler witch got an error
public class OrderHandler : IDistributedEventHandler, ITransientDependency
{
private readonly OrderReservationManager _orderReservationManager;
public OrderHandler(OrderReservationManager orderReservationManager)
{
_orderReservationManager = orderReservationManager;
}
public async Task HandleEventAsync(OrderEto eventData)
{
_orderReservationManager.ThrowError();
}
}
call by this from another domain :
public class StockAppService : IStockAppService
{
private readonly IStockRepository _stockRepository;
public StockAppService(IStockRepository stockRepository)
{
_stockRepository = stockRepository;
}
public virtual async Task<Guid> OrderItemAsync(FieldPlanCreateDto input)
{
await _stockRepository.UpdateStock(input.item);
AddDistributedEvent(new OrderEto
{
Item = input.item
});
}
}
if i got an error on StockAppService , error is return correctly(_AbpErrorFormat, error.Data in json) but an error HandleEventAsync always return TypeError: Failed to fetch.
Hi, i'd like to catch a BusinessException in a DistributedHandler(IDistributedEventHandler) from an api call , i put [UnitOfWork(true)] attribute in both classes and verify i m in same uow but i only got error : TypeError: Failed to fetch, Any clue ? Thanks. Fred.