Plugin Version
0.5.2 and 0.6.0
NetBox Version
4.6.3
Python Version
Python 3.13.5
Steps to Reproduce
Reproducing the problem has proven difficult because errors produced are intermittent and unpredictable. The reasons for suspecting Custom Objects are
- the errors started after a custom object type and it's custom fields were modified, no other Netbox objects were in the changelog in this timeframe.
- deleting the custom object type was part of solving the problem
While we haven't been able to reproduce the steps to this error, we think it is something to do with removing/adding custom fields on the Custom Object Type, perhaps with Polymorphic selected, but haven't been able to reproduce it in out test environment.
The observed behaviour is from a production Netbox (which we had to fix, not debug), and we suspect it isn't the first time this bug has caused a problem in this Netbox install.
The error
The error was triggered on multiple different objects, not just custom objects (although I'm not sure if the failing objects were referenced by a custom object.
It was intermittent, meaning we could load a object that triggered the error successfully by retrying. It triggered on both use navigation of the GUI as well as API calls. Scripts that loaded large number of object via the api, and thus made many api calls, usually failed at least one api call.
What didn't work
Upgrading from Custom Objects 0.5.2 to 0.6.0, and branching from 1.1.0 to 1.1.2.
Restarting Netbox.
Deleting the suspected Custom Object Type and restarting Netbox.
What did work
Deleting the suspected Custom Object Type, restarting Netbox and clearing the cache.
"from django.core.cache import cache; cache.clear()"
Anything else
We could see deleted objects in the Netbox shell after they had been deleted, I'm not sure if this is a quirk of the shell though as in testing I could see this same behavior but restarting the shell showed the expected results.
Expected Behavior
Ideally Netbox not erroring.
Observed Behavior
Intermittently errors from Netbox.
Error message from users

Error message from api
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://netbox/api/tenancy/contact-groups/961/ | body={"error": "maximum recursion depth exceeded", "exception": "RecursionError", "netbox_version": "4.6.3", "python_version": "3.13.5"}
Plugin Version
0.5.2 and 0.6.0
NetBox Version
4.6.3
Python Version
Python 3.13.5
Steps to Reproduce
Reproducing the problem has proven difficult because errors produced are intermittent and unpredictable. The reasons for suspecting Custom Objects are
While we haven't been able to reproduce the steps to this error, we think it is something to do with removing/adding custom fields on the Custom Object Type, perhaps with Polymorphic selected, but haven't been able to reproduce it in out test environment.
The observed behaviour is from a production Netbox (which we had to fix, not debug), and we suspect it isn't the first time this bug has caused a problem in this Netbox install.
The error
The error was triggered on multiple different objects, not just custom objects (although I'm not sure if the failing objects were referenced by a custom object.
It was intermittent, meaning we could load a object that triggered the error successfully by retrying. It triggered on both use navigation of the GUI as well as API calls. Scripts that loaded large number of object via the api, and thus made many api calls, usually failed at least one api call.
What didn't work
Upgrading from Custom Objects 0.5.2 to 0.6.0, and branching from 1.1.0 to 1.1.2.
Restarting Netbox.
Deleting the suspected Custom Object Type and restarting Netbox.
What did work
Deleting the suspected Custom Object Type, restarting Netbox and clearing the cache.
"from django.core.cache import cache; cache.clear()"Anything else
We could see deleted objects in the Netbox shell after they had been deleted, I'm not sure if this is a quirk of the shell though as in testing I could see this same behavior but restarting the shell showed the expected results.
Expected Behavior
Ideally Netbox not erroring.
Observed Behavior
Intermittently errors from Netbox.
Error message from users

Error message from api
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://netbox/api/tenancy/contact-groups/961/ | body={"error": "maximum recursion depth exceeded", "exception": "RecursionError", "netbox_version": "4.6.3", "python_version": "3.13.5"}