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.

Not able to see tracebacks

See original GitHub issue

Hi,

I’m trying to upgrade my project to channels 2 but I’ve noticed a weird behavior when an exception is raised on a consumer I’m not able to see the traceback in nowhere.

class BidConsumer(JsonWebsocketConsumer):

    def receive_json(self, content):
        print(content['non_existing_key'])  # KeyError is expected

I just noticed the error because I lost the connection to websocket on browser but I can’t see anything on console.

I’m using Python 3.6.4, Django 2.0.2, Channels 2.0.0 and since I’m still testing I didn’t configure anything as ASGI backend.

This only happens when Channels are running via runserver if I use via daphne I’m able to see exceptions as expected.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
andrewgodwincommented, Feb 3, 2018

Alright! I’ve released that fix in daphne 2.0.1.

0reactions
dvlcommented, Feb 3, 2018

It’s works! Using the code from master solved the issue.

Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding the Python Traceback
In this step-by-step tutorial, you'll learn how to read and understand the information you can get from a Python traceback. You'll walk through...
Read more >
How to read a traceback in Python
When Python encounters an error in your code, it will print out a traceback. Let's talk about how to use tracebacks to fix...
Read more >
PyCharm 2019.2 not showing Traceback on Exception
It throws an error, you pause. Traceback in the console is literally the last thing handler does. But you pause it before handler...
Read more >
Understanding Tracebacks in Python
In Python, error messages are usually called tracebacks. ... You will see this error whenever Python cannot find the module that you are ......
Read more >
What Are Python Error Tracebacks And How Do You Use Them?
Your browser can't play this video. ... of my daughter on my desktop, and I don't know that I need to broadcast her...
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