-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Jobs page not loading #17566
Comments
Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports. |
Revisions were made, can you please review. @jeremystretch |
This is a reminder that additional information is needed in order to further triage this issue. If the requested details are not provided, the issue will soon be closed automatically. |
…on being thrown if no object_type is set
… prevent exception being thrown if no object_type is set (netbox-community#17661) * Fixes: netbox-community#17566 - Fix issue `Job.get_absolute_url()` to prevent exception being thrown if no object_type is set * Add back whitespace after statements * Remove whitespace. Change to if statement
Deployment Type
Self-hosted
NetBox Version
v4.1.1
Python Version
3.10
Steps to Reproduce
This problem is a result of jobs which do not have an associated object_type in the job model. The get_absolute_url() method will fail preventing the jobs page from loading in the Netbox GUI.
This problem should be reproducible by uploading the following script, then delete it before it finishes. Afterwards, try navigating to Operations -> Jobs page.
jobs model - method fails if object_type does not exist
Test Script
Expected Behavior
Error handling should be employed in the get_absolute_url method in case object_type does not exist.
Observed Behavior
Error presented when trying to open Jobs page
The text was updated successfully, but these errors were encountered: