Cable Trace view crash
See original GitHub issueNetBox version
v2.10.7
Python version
3.8
Steps to Reproduce
This is the only path I have tested:
- Create a circuit
- Create an interface and a Device to link to
- Create a Site 5: Create a Circuit Termination Site (Side A) in the circuit record 6: Create an Interface termination (Side B) in the circuit record 7: Upgrade to netbox v2.10.7 8: Click on the Trace route icon in the Circuits view
Expected Behavior
Trace route tamplete should display instead of crashing the page
Observed Behavior
The Trace route view will crash on TypeError: failed to unpack non-iterable:
netbox/dcim/views.py: PathTraceView
total_length, is_definitive = path.get_total_length if path else (None, False)
This fixes the issue for me:
try:
total_length, is_definitive = path.get_total_length if path else (None, False)
except TypeError as te:
total_length, is_definitive = (None, False)
I have checked the Cable model objects in the netbox shell and they show _path ids before and after upgrading netbox and it shows an id (which means that a path exists for this cable).
Also I ran the management command that checks for missing paths and it does not show any issues.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
My ESP crashes running some code. How to troubleshoot it?
Does ESP restart on random basis, or under certain conditions, like serving a web page? Do you see always the same exception code...
Read more >Using ULINKpro/Trace to debug a crashed CPU - Keil forum
Hello, I'm using ULINKpro (ETM Trace enabled) to debug a problem with my code on a LPC4357. In some situations the CPU crashes....
Read more >Sudden crash on launch from all TestFlight builds
The app runs fine under Xcode on an iPad connected by wire to my MacBook. ... There is no stack trace available in...
Read more >Retrieving Information from the Crashinfo File - Cisco
The crashinfo file is a collection of useful information related to the current crash stored in boot Flash or Flash memory. When a...
Read more >How to Use the Mac Console App to Diagnose a Crash
This section and the next, which is called a backtrace, can be very helpful for the developer to troubleshoot a system or app...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I shall embark on a period of self-flagellation for this 😦 sorry. Although I am wondering how this ever worked in the rudimentary testing I did?
Looks like there was a bug in PR #5672 that I didn’t catch.
path.get_total_length()
needs to be called rather than referenced.