Error when connect on network with captive portal
Versions
- OS: Antergos Linux
- GTK+ Version: 3.24.12
- PyGObject Version: 3.34.0
- python-nbxmpp Version: 0.6.10
- Gajim Version: 1.1.3
Traceback
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/nbxmpp/transports_nb.py", line 661, in _do_receive
received = decode_py2(received, 'utf-8')
File "/usr/lib/python3.7/site-packages/nbxmpp/transports_nb.py", line 91, in decode_py2
string = string.decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xad in position 454: invalid start byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/gi/overrides/GLib.py", line 664, in <lambda>
func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
File "/usr/lib/python3.7/site-packages/nbxmpp/idlequeue.py", line 563, in _process_events
return IdleQueue._process_events(self, fd, flags)
File "/usr/lib/python3.7/site-packages/nbxmpp/idlequeue.py", line 411, in _process_events
obj.pollin()
File "/usr/lib/python3.7/site-packages/nbxmpp/transports_nb.py", line 451, in pollin
self._do_receive()
File "/usr/lib/python3.7/site-packages/nbxmpp/transports_nb.py", line 671, in _do_receive
received = decode_py2(received, 'utf-8')
File "/usr/lib/python3.7/site-packages/nbxmpp/transports_nb.py", line 91, in decode_py2
string = string.decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xad in position 454: invalid start byte
Steps to reproduce the problem
I didn't retried but here is what happened:
- everything okay
- suspend system
- wake up system in a place without network
- (actually the error might be here, I'm not sure)
- connect to a network that has a captive portal
- get this error