question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cable Trace view crash

See original GitHub issue

NetBox version

v2.10.7

Python version

3.8

Steps to Reproduce

This is the only path I have tested:

  1. Create a circuit
  2. Create an interface and a Device to link to
  3. 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cpmills1975commented, Apr 1, 2021

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?

1reaction
jeremystretchcommented, Mar 26, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found