KeyError on cable trace #5336

Closed
opened 2025-12-29 19:26:51 +01:00 by adam · 2 comments
Owner

Originally created by @JonathonReinhart on GitHub (Sep 8, 2021).

NetBox version

v3.0.1

Python version

3.8

Steps to Reproduce

I discovered this while exploring the NetBox demo instance.

Either

Expected Behavior

I would expect to see a cable trace of the cable connected between either pair of interfaces.

Observed Behavior

Server Error

There was a problem with your request. Please contact an administrator.


The complete exception is provided below:

<class 'KeyError'>

51

Python version: 3.8.10
NetBox version: 3.0.1

Note: The KeyError key 51 (or 52) is the ID of the cable (#51 or #52) which connects the interfaces

Originally created by @JonathonReinhart on GitHub (Sep 8, 2021). ### NetBox version v3.0.1 ### Python version 3.8 ### Steps to Reproduce I discovered this while exploring the NetBox demo instance. Either - from the [interfaces page of `dmi01-scranton-rtr01`](https://demo.netbox.dev/dcim/devices/9/interfaces/), click the Trace button on either: - [`GigabitEthernet0/1/0`](https://demo.netbox.dev/dcim/interfaces/107/trace/) - [`GigabitEthernet0/1/0`](https://demo.netbox.dev/dcim/interfaces/108/trace/) - from the [interfaces page of `dmi01-scranton-sw01`](https://demo.netbox.dev/dcim/devices/22/interfaces/), click the Trace button on either: - [`GigabitEthernet1/0/1`](https://demo.netbox.dev/dcim/interfaces/578/trace/) - [`GigabitEthernet1/0/2`](https://demo.netbox.dev/dcim/interfaces/579/trace/) ### Expected Behavior I would expect to see a cable trace of the cable connected between either pair of interfaces. ### Observed Behavior > #### Server Error > There was a problem with your request. Please contact an administrator. > >----- > The complete exception is provided below: > ``` > <class 'KeyError'> > > 51 > > Python version: 3.8.10 > NetBox version: 3.0.1 > ``` Note: The `KeyError` key 51 (or 52) is the ID of the cable ([#51](https://demo.netbox.dev/dcim/cables/51/) or [#52](https://demo.netbox.dev/dcim/cables/52/)) which connects the interfaces
adam closed this issue 2025-12-29 19:26:51 +01:00
Author
Owner

@TorstenDrees commented on GitHub (Sep 8, 2021):

Hi,

similar error here:

<class 'AttributeError'>

'NoneType' object has no attribute 'origin'

Python version: 3.8.5
NetBox version: 3.0.1

Regards,
Torsten

@TorstenDrees commented on GitHub (Sep 8, 2021): Hi, similar error here: ``` <class 'AttributeError'> 'NoneType' object has no attribute 'origin' Python version: 3.8.5 NetBox version: 3.0.1 ``` Regards, Torsten
Author
Owner

@jeremystretch commented on GitHub (Sep 8, 2021):

Per the bug report template:

Additionally, do not rely on the demo instance for reproducing suspected bugs, as its data is prone to modification or deletion at any time.

Closing this because reproduction steps were not provided for a clean installation.

@jeremystretch commented on GitHub (Sep 8, 2021): Per the bug report template: > Additionally, **do not rely on the demo instance** for reproducing suspected bugs, as its data is prone to modification or deletion at any time. Closing this because reproduction steps were not provided for a clean installation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5336