HangfireIO / HangfireIO/Hangfire

[Refit] Hangfire asp.net core refit

Open
#1,641 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
10.1k
Forks
1.8k
Avg merge
1h 19m
Merged PRs (30d)
1

Description

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.<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(IEnumerable`1 allHandlers, INotification notification, CancellationToken cancellationToken)
at INKA.Order.Infrastructure.Handlers.Order.OrderInsertCommandHandler.SendNotification(String orderId, String orderCode, List`1 installations, List`1 shippings) in E:\Works\Projects\inka_saas\INKA.Order.Infrastructure\Handlers\Order\OrderCommandHandler.cs:line 533
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()`

Contributor guide

Open the contributing guide

Research direction

Start with the Refit exception at RequestBuilderImplementation.cs line 773 and inspect the calling handler at OrderDeliveryReminderNotificationHandler.cs line 74. Reproduce the BackgroundJob.Enqueue path with the request details and compare it with a direct service call. Done means identifying whether Hangfire changes the request context or documenting the required fix with a verified 400 response outcome.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.