HangfireIO / Hangfire

An easy way to perform background job processing in .NET and .NET Core applications. No Windows Service or separate process required
https://www.hangfire.io
Other
9.18k stars 1.67k forks source link

[Refit] Hangfire asp.net core refit #1641

Open tienvd1994 opened 4 years ago

tienvd1994 commented 4 years ago

I use refit (https://github.com/reactiveui/refit) inside BackgroundJob.Enqueue to call request from service other. But return status code 400. Sorry my english is very bad. Pls support me this error. Refit.ApiException: Response status code does not indicate success: 400 (Bad Request). at Refit.RequestBuilderImplementation.<>c__DisplayClass20_0.<<BuildVoidTaskFuncForMethod>b__0>d.MoveNext() in d:\a\1\s\Refit\RequestBuilderImplementation.cs:line 773 --- End of stack trace from previous location where exception was thrown --- at INKA.Order.Infrastructure.Mediators.NotificationHandlers.OrderDeliveryReminderNotificationHandler.Handle(OrderDeliveryReminderNotification notification, CancellationToken cancellationToken) in E:\Works\Projects\inka_saas\INKA.Order.Infrastructure\Mediators\NotificationHandlers\OrderDeliveryReminderNotificationHandler.cs:line 74 at MediatR.Mediator.PublishCore(IEnumerable1 allHandlers, INotification notification, CancellationToken cancellationToken) at INKA.Order.Infrastructure.Handlers.Order.OrderInsertCommandHandler.SendNotification(String orderId, String orderCode, List1 installations, List1 shippings) in E:\Works\Projects\inka_saas\INKA.Order.Infrastructure\Handlers\Order\OrderCommandHandler.cs:line 533 at System.Runtime.CompilerServices.TaskAwaiter.GetResult()`

MikelThief commented 4 years ago

You should rather contact your API owner rather than reporting issue here. This has nothing to do with Hangfire. Your API request contains wrong data.