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

Adding a Script Widget Causes Server Error #15044

Closed
mtbutler07 opened this issue Feb 5, 2024 · 1 comment
Closed

Adding a Script Widget Causes Server Error #15044

mtbutler07 opened this issue Feb 5, 2024 · 1 comment
Labels
status: duplicate This issue has already been raised type: bug A confirmed report of unexpected behavior in the application

Comments

@mtbutler07
Copy link

Deployment Type

NetBox Cloud

NetBox Version

v3.7.1

Python Version

3.11

Steps to Reproduce

  1. Click "Unlock Dashboard"
  2. Click "+ Add Widget"
  3. Set Widget Type to "Object Counts"
  4. Set Models to "Extras > Scripts"
  5. Click "Save"
Screenshot 2024-02-05 at 12 27 20 PM Screenshot 2024-02-05 at 12 28 40 PM

To resolve this, I was able to reset the dashboard by going to https://<netbox>/extras/dashboard/reset/ as others have mentioned in this discussion #12520

Expected Behavior

A new widget to be added showing some a counter representing the number of times a script has been run.

Observed Behavior

<class 'AttributeError'>
'Manager' object has no attribute 'restrict'
@mtbutler07 mtbutler07 added the type: bug A confirmed report of unexpected behavior in the application label Feb 5, 2024
@mtbutler07
Copy link
Author

Duplicate of #14933

@jeremystretch jeremystretch added the status: duplicate This issue has already been raised label Feb 5, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: duplicate This issue has already been raised type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants