Not able to see tracebacks
See original GitHub issueHi,
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:
- Created 6 years ago
- Comments:7 (5 by maintainers)
Top 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 >
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 Free
Top 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
Alright! I’ve released that fix in
daphne 2.0.1
.It’s works! Using the code from master solved the issue.
Thank you