You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While typing up this issue, I updated System.Text.Json to v8.0.1 and the dashboard now works. I'm still including the details below in case anyone else is having an issue or wants to research it more.
When trying to access the Coravel dashboard, I get a 404 error.
I've looked at some of the other posted issues and all the fixes are already present in my implementation. The dashboard was working perfectly up until recently, and I don't know what change has caused it to not work. Perhaps a package update?
While the dashboard doesn't work, a job that I scheduled via the dashboard is continuing to run properly. I just can't access the dashboard. Nothing is logged from Coravel.
I made extension methods for setting up Coravel and Coravel Pro as follows:
public static IServiceCollection ConfigureJobs(this IServiceCollection services)
{
services.AddRazorPages().AddNewtonsoftJson();
// register example jobs.
services.AddTransient<Job1>();
services.AddTransient<Job2>();
// created a new dbcontext specifically for Coravel
services.AddCoravelPro(typeof(CoravelDbContext));
return services;
}
public static IApplicationBuilder UseJobs(this IApplicationBuilder app)
{
app.ApplicationServices
.ConfigureQueue();
app.UseCoravelPro();
return app;
}
In Program.cs I have the following (condensed):
var builder = WebApplication.CreateBuilder(args);
builder.Services.ConfigureJobs();
var app = builder.Build();
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapRazorPages();
endpoints.MapControllers();
});
app.UseJobs();
app.Run();
The text was updated successfully, but these errors were encountered:
Framework: .NET 6.0
Coravel: v5.0.2
Coravel.Pro: v5.2.2
System.Text.Json: v8.0.0
While typing up this issue, I updated
System.Text.Json
to v8.0.1 and the dashboard now works. I'm still including the details below in case anyone else is having an issue or wants to research it more.When trying to access the Coravel dashboard, I get a 404 error.
I've looked at some of the other posted issues and all the fixes are already present in my implementation. The dashboard was working perfectly up until recently, and I don't know what change has caused it to not work. Perhaps a package update?
While the dashboard doesn't work, a job that I scheduled via the dashboard is continuing to run properly. I just can't access the dashboard. Nothing is logged from Coravel.
I made extension methods for setting up Coravel and Coravel Pro as follows:
In Program.cs I have the following (condensed):
The text was updated successfully, but these errors were encountered: