HangfireIO / HangfireIO/Hangfire
Hangfire Dashboard: NRE
- Dominant language
- C#
- Stars
- 10.1k
- Forks
- 1.8k
- Avg merge
- 1h 19m
- Merged PRs (30d)
- 1
Description
NullReferenceException on dashboard when using latest Hangfire version (ASP.NET Core)
``Object reference not set to an instance of an object.","RenderedMessage":"An unhandled exception has occurred: Object reference not set to an instance of an object.","Exception":"System.NullReferenceException: Object reference not set to an instance of an object.\n at Hangfire.Dashboard.Pages.FailedJobsPage.Execute()\n at Hangfire.Dashboard.RazorPage.TransformText(String body)\n at Hangfire.Dashboard.RazorPageDispatcher.Dispatch(DashboardContext context)\n at Hangfire.Dashboard.AspNetCoreDashboardMiddleware.Invoke(HttpContext httpContext)\n at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.d__3.MoveNext()\n--- End of stack trace from previous location where exception was thrown ---\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware`1.d__18.MoveNext()\n--- End of stack trace from previous location where exception was thrown ---\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware`1.d__18.MoveNext()\n--- End of stack trace from previous location where exception was thrown ---\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.d__6.MoveNext()``
Contributor guide
Research direction
Start at Hangfire.Dashboard.Pages.FailedJobsPage.Execute(), the entry point named in the stack trace, and reproduce the dashboard failure with the latest Hangfire version on ASP.NET Core. Done means the dashboard loads without the reported NullReferenceException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100