Skip to content
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

No error trace on reports #14431

Closed
PaulR282 opened this issue Dec 5, 2023 · 1 comment
Closed

No error trace on reports #14431

PaulR282 opened this issue Dec 5, 2023 · 1 comment
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@PaulR282
Copy link

PaulR282 commented Dec 5, 2023

NetBox version

v3.6.6

Python version

3.10

Steps to Reproduce

  1. Add a report that crashes into the errored state

example:

from extras.reports import Report

class testtrace(Report):
    name = "testtrace"
    description = "testtrace"
    def test_trace(self):
        if true:
            raise NotImplementedError("Error")
        self.log_info(".",".")

Expected Behavior

A trace should be shown so you can troubleshoot the problem

Observed Behavior

image

@PaulR282 PaulR282 added the type: bug A confirmed report of unexpected behavior in the application label Dec 5, 2023
@jeremystretch
Copy link
Member

The report results list is intended to convey only information logged by reports directly, and not fatal errors. This would need to be a feature request, however #13334 has already been implemented for the upcoming release of NetBox v3.7. This change ensures that any errors resulting from the execution of a background job are recorded on the job record itself, which I believe satisfies your use case.

Also, take note that reports are slated for removal in NetBox v4.0 (see #12510).

@jeremystretch jeremystretch closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants