Stream parsing error; xml.parsers.expat.ExpatError XML or text declaration not at start of entity
Versions
- OS: Ubuntu 19.04
- GTK+ Version: 3.24.8
- PyGObject Version: 3.32.0
- python-nbxmpp Version: 0.6.10
- Gajim Version: 1.1.3+gajim@b63dd2ed
Traceback
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nbxmpp/dispatcher_nb.py", line 231, in ProcessNonBlocking
self.Stream.Parse(data)
xml.parsers.expat.ExpatError: XML or text declaration not at start of entity: line 1, column 362
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 662, in <lambda>
func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
File "/usr/lib/python3/dist-packages/nbxmpp/idlequeue.py", line 563, in _process_events
return IdleQueue._process_events(self, fd, flags)
File "/usr/lib/python3/dist-packages/nbxmpp/idlequeue.py", line 411, in _process_events
obj.pollin()
File "/usr/lib/python3/dist-packages/nbxmpp/transports_nb.py", line 451, in pollin
self._do_receive()
File "/usr/lib/python3/dist-packages/nbxmpp/transports_nb.py", line 676, in _do_receive
self._on_receive(received)
File "/usr/lib/python3/dist-packages/nbxmpp/transports_nb.py", line 690, in _on_receive
self.on_receive(data)
File "/usr/lib/python3/dist-packages/nbxmpp/dispatcher_nb.py", line 238, in ProcessNonBlocking
self._owner.Connection.disconnect()
AttributeError: 'NoneType' object has no attribute 'Connection'
Steps to reproduce the problem
... It was idling. Didn't do nothing and disconnected from the internet (don't know why) and after 15-20 minutes later the error occurred.