/jobs/enqueued returns 500 Internal Server Error

Dashboard http://localhost:9000/hangfire works fine, but http://localhost:9000/hangfire/jobs/enqueued (= click on “Jobs”) returns HTTP 500 - Internal Server Error. Other tabs (“Retries”, “Recurring jobs”, “Servers”) work fine.
I use HangFire.Core version 1.5.6 in a self-hosted exe application.

Program.cs, Main:
GlobalConfiguration.Configuration .UseSqlServerStorage("Server=(local);Database=hangfire;user id=...;password=...") .UseMsmqQueues(@".\private$\hangfire-{0}"); using (WebApp.Start<OwinStartup>("http://localhost:9000/")) // for dashboard { Console.ReadLine(); }
public class OwinStartup { public void Configuration(IAppBuilder app) { app.UseHangfireDashboard(); } }

1 Like

I know it is an old bug, but I get it as well, with the latest version. Using Redis storage. Mostly after a server timeout exception.

After that I get Key already exists exception when calling this function:
var crawlQueues = monitoringApi.Queues().Where(q => !q.Name.Equals("default", StringComparison.OrdinalIgnoreCase)).Select(q => q.Name);

I guess, the bug on the enqueued page is using somewhat similar code, except not filtering the default queue off course.

I guess it is a redis lock or something?

Were you able to figure this out? I’m having the same issue.