#4823 (Jane reports "Exception inside application")
by Luc Saffre · in Developers · assigned to Luc Saffre
Summary
Hannes and I are getting messages saying Exception inside application int() argument must be a string, a bytes-like object or a number, not 'NoneType' but without any traceback. Completely useless.
Children
Comments
- 3 years, 6 months ago by Luc Saffre about #4823 (Jane reports "Exception inside application") : I moved the test "if not self.channel_name" from disconnect() to connect() of the consumer. I also removed the CHANNELS_TWO condition (we no longer support channels 2). I also removed some consumer methods that were inactive without the chat plugin (which we don't use currently).
- 3 years, 6 months ago by Luc Saffre about #4823 (Jane reports "Exception inside application") : After reading about async and await I start to understand why the issue is still there...
- 3 years, 7 months ago by Luc Saffre about #4823 (Jane reports "Exception inside application") : Jane is back.
- 3 years, 7 months ago by Luc Saffre about #4823 (Jane reports "Exception inside application") : I will make an upgrade on Jane soon.
- 3 years, 7 months ago by Luc Saffre about #4823 (Jane reports "Exception inside application") : I saw it also without the warning. I updated the following Python packages in the Jane environment: channels redis Django
- 3 years, 7 months ago by Luc Saffre about #4823 (Jane reports "Exception inside application") : The traceback happens immediately after the following warning (are they related?):
202303-03 07:27:47 WARNING [server 1452078 140334014867264] : Application instance <Task pending name='Task-3' coro=<ProtocolTypeRouter.__call__() running at /usr/local/lino/lino_local/jane/env/lib/python3.9/site-pack... - 3 years, 7 months ago by Luc Saffre about #4823 (Jane reports "Exception inside application") : We continue to get these messages despite the fact that we say "if self.channel_name is None: return" before line 41 in /lino/lino/modlib/notify/consumers.py (where say "await self.channel_layer.group_discard('broadcast', self.channel_name)"). I now changed the test to "if not self.channel_name" to ...
- 3 years, 9 months ago by Sharif Mehedi about #4823 (Jane reports "Exception inside application") : I am guessing it's probably coming from AnonymousUser
- 3 years, 9 months ago by Luc Saffre in reply to Luc Saffre about #4823 (Jane reports "Exception inside application") : After reading How to manage error reporting I would say that it might as well be a bug caused by our tweaking with the logging config.
- 3 years, 9 months ago by Luc Saffre about #4823 (Jane reports "Exception inside application") (1 reply) : The reason of the exception is already fixed (but not yet deployed to Jane): use user.id instead of user.username for connecting to and disconnecting from the channel.
- 3 years, 9 months ago by Luc Saffre about #4823 (Jane reports "Exception inside application") (1 reply) : Seems that this is a security measure in recent Django versions: tracebacks aren't included in the email report. I can see the traceback by looking at the lino.log file.
- 3 years, 9 months ago by Luc Saffre about #4823 (Jane reports "Exception inside application") : To be observed after the next release.
- 3 years, 9 months ago by Luc Saffre about #4823 (Jane reports "Exception inside application") : Created new Ticket #4823 (⚹ Jane reports "Exception inside application").