-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Job Details Page throws Exception #566
Comments
Thanks for reporting! Please post here the signature of a method that causes this exception. |
Hi, This is the full stacktrace. It happens when going to view job details for some, but not all, jobs:
I can pull in the project and debug directly (as with just the dll it's not giving me any further insight), if it's not clear from the above, or it's only affecting my app - I just guessed it was impacting everyone. Seems to happen when looking at failed jobs, but I suspect it's something to do with the job data. This only started happening when I upgraded from version 1.5.3. |
Looks one of the parameter types of your method causing this exception. Can you post the signature of the method here (e.g. |
Thanks - I believe Hangfire handles this path, so the methods aren't Happy to take a closer look if it helps, and again, thanks for the awesome
|
Hi, I get the same issue. I am creating a recurring job that takes two params: I am passing cancellationToken as JobCancellationToken.Null. The job runs OK and is passed a real JobCancellationToken but the param is stored as null in the database. If I remove the first param, it works as expected and I don't see the exception when clicking on job details so it seems connected to passing IJobCancellationToken. I also tried passing a real JobCancellationToken in but this also failed. Thanks |
@simonberrynoq, thanks for the details! Fixed in build #2135. |
Apologies for the delay, but not sure if this fix is for the same bug. Attaching the Hangfire source to a running instance of our web app, I can see the error is happening here: What's being passed in at this point is a List of strings: The type signature for this Paramater is This seems to break the dashboard when viewing a job's details page. I fixed it on my end by handling this situation the same way as if enumerable Arugument is null. So changing it to: Line 120 in DashBoard\JobMethodCallRenderer.cs: if (enumerableArgument == null || argumentValue == null)
{
var argumentRenderer = ArgumentRenderer.GetRenderer(parameter.ParameterType);
... Thanks! |
@odinserj Let me know if you'd prefer me to open a new issue, and thanks again for the frequent updates! |
@dazbradbury, thanks for reporting! This is the same bug, but another case. |
Hi @odinserj -
In the latest beta release (1.6.0-beta2), clicking through to a job details page:
eg: /hangfire/jobs/details/2376579
Causes an exception to be thrown:
Not sure if this has been noticed yet, so thought I'd mention it!
Thanks again for your hard work and awesome code.
The text was updated successfully, but these errors were encountered: