Giter Site home page Giter Site logo

Comments (2)

mmerickel avatar mmerickel commented on August 16, 2024

if you can reproduce this issue then the question is which codepath the request went through the tween in which self.process_response was not invoked. I'd put a breakpoint around [1] and step through until the response goes out.

[1]

request.pdtb_id = hexlify(id(request))

from pyramid_debugtoolbar.

 avatar commented on August 16, 2024

First of all, thanks for a great toolbar, it's been very useful.

I've been seeing this error occasionally as well. I just put a breakpoint at the place suggested by mmerickel above and got some more info: in my case the exception got triggered in https://github.com/Pylons/pyramid_debugtoolbar/blob/4.5/src/pyramid_debugtoolbar/toolbar.py#L75 . The panel_class(request) call failed due to an exception raised in panel_class.__init__().

In my case it turned out to be a UnicodeDecodeError exception in a custom panel's __init__(). Fixing this exception also fixed the issue with HeaderDebugPanel.

Note: the faulty custom panel's class was (way) after the HeaderDebugPanel class in the panel_classes list, so this part of the code should've already ran for HeaderDebugPanel, making me guess it's to do with some later code that doesn't run due to the raised exception. I didn't investigate any further.

Using Pyramid Debugtoolbar 4.5.

from pyramid_debugtoolbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.