-
Notifications
You must be signed in to change notification settings - Fork 63
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
Server Error after adding an Object Count Widget #303
Comments
Hi @maxzapp, I am not able to reproduce this bug as there's no "topology view object". What I see is this: Both of these models do anything, just because it makes no sense at all to expect an object list for this models. But both of them don't give me a server error. |
Hi, i corrected my description . These modes maybe make no sense but while exploring the new dasboard i added them an run into this error. |
Hi
its in object count not in list
br
Am 15. Mai 2023, 21:35 +0200 schrieb Mario ***@***.***>:
… Hi @maxzapp,
I am not able to reproduce this bug as there's no "topology view object". What I see is this:
Both of these models do anything, just because it makes no sense at all to expect an object list for this models. But both of them don't give me a server error.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I can reproduce it now. You could have added to your observed behaviour that you lock yourself out of NetBox when you reproduce the error. For all those who have locked themselves out:
But the question is what we can do about it. These models are not intended to be listed nor counted. I think it is a stupid solution to add more view classes just to catch an error that should not occur. There should be an option that can be added to models so that the model will not be listed in the dashboard config. If that's the case already, please provide relevant information. If not, the bug should be addressed upstream in my opinion. |
Hi, I hope no one was testing on production systems, as i did |
Never mind, nothing bad happened. Your solution is shorter and better of course. |
I asked at netbox-community/netbox#12520 (reply in thread) two weeks ago about adding a parameter to the model in order to tell NetBox to not list NTV in the dashboard config. Unfortunately there hasn't been any reply. I mark this as 'pending closure' since there's nothing we can do about the current behavior, especially not without help from the NetBox Team. |
As a last resort I opened a feature request in order to be able to hide the problematic models from the widget configuration. See netbox-community/netbox#12810 |
NetBox version
3.5.1
Topology Views version
3.5.0
Steps to Reproduce
1 create new widget object count
2 add a topology view model
Expected Behavior
A new widget will be generated
Observed Behavior
Server Error occours:
Server Error
There was a problem with your request. Please contact an administrator.
The complete exception is provided below:
<class 'AttributeError'>
'Manager' object has no attribute 'restrict'
Python version: 3.8.10
NetBox version: 3.5.1
If further assistance is required, please post to the NetBox discussion forum on GitHub.
The text was updated successfully, but these errors were encountered: