python-nbxmpp issueshttps://dev.gajim.org/gajim/python-nbxmpp/-/issues2019-06-28T07:10:43Zhttps://dev.gajim.org/gajim/python-nbxmpp/-/issues/76[BEGINNER] Request an example for socks5 connection to a server2019-06-28T07:10:43ZJean Dupuit[BEGINNER] Request an example for socks5 connection to a serverHello,
Sorry, I did not know or posted it, so I'm doing it here.
I need to write a program that remotely connects to a jabber server via a socks5 proxy.
But I am a little lost with this library and I can not find how to do it.
Can yo...Hello,
Sorry, I did not know or posted it, so I'm doing it here.
I need to write a program that remotely connects to a jabber server via a socks5 proxy.
But I am a little lost with this library and I can not find how to do it.
Can you give me a simple example that connects to a remote xmpp server via a socks5 proxy and sends a message?
Sorry, I'm aware that this is assistant ship, but I do not find how to do it and there is not really much documentation on this library. I looked in the gadjim code, but it's too complex and I do not get out of it.
Thank you so much.https://dev.gajim.org/gajim/python-nbxmpp/-/issues/77Document supported XEPs2020-06-27T10:48:22ZMarcin MielniczukDocument supported XEPsYou can reuse a similar list in babbler's [README.md](https://bitbucket.org/sco0ter/babbler/src/master/readme.md)You can reuse a similar list in babbler's [README.md](https://bitbucket.org/sco0ter/babbler/src/master/readme.md)https://dev.gajim.org/gajim/python-nbxmpp/-/issues/78Stream parsing error; xml.parsers.expat.ExpatError XML or text declaration no...2020-07-05T20:36:59ZKein BedarfStream 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@b63dd2ed86789f870beeb98a31acca7e48f1c34d
## Traceback
```
Traceback (most recent call last):
...## 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@b63dd2ed86789f870beeb98a31acca7e48f1c34d
## 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.https://dev.gajim.org/gajim/python-nbxmpp/-/issues/79UnicodeDecodeError 'utf-8' codec can't decode byte 0xca in position 2022020-03-07T21:50:22ZBogazkiUnicodeDecodeError 'utf-8' codec can't decode byte 0xca in position 202## Versions
- OS: Windows 7
- GTK+ Version: 3.24.1
- PyGObject Version: 3.32.1
- python-nbxmpp Version: 0.6.10
- Gajim Version: 1.1.3
## Traceback
```
Traceback (most recent call last):
File "C:/msys64/home/appveyor/gajim/win/_build_r...## Versions
- OS: Windows 7
- GTK+ Version: 3.24.1
- PyGObject Version: 3.32.1
- python-nbxmpp Version: 0.6.10
- Gajim Version: 1.1.3
## Traceback
```
Traceback (most recent call last):
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw32/lib/python3.7/site-packages/nbxmpp/transports_nb.py", line 661, in _do_receive
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw32/lib/python3.7/site-packages/nbxmpp/transports_nb.py", line 91, in decode_py2
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xca in position 202: invalid continuation byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw32/lib/python3.7/site-packages/gajim/gui_interface.py", line 2251, in process_connections
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw32/lib/python3.7/site-packages/nbxmpp/idlequeue.py", line 518, in process
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw32/lib/python3.7/site-packages/nbxmpp/transports_nb.py", line 451, in pollin
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw32/lib/python3.7/site-packages/nbxmpp/transports_nb.py", line 671, in _do_receive
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw32/lib/python3.7/site-packages/nbxmpp/transports_nb.py", line 91, in decode_py2
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xca in position 202: invalid continuation byte
```
## Steps to reproduce the problem
...https://dev.gajim.org/gajim/python-nbxmpp/-/issues/83Support loading client certs in PEM format2019-09-05T15:52:52ZPhilipp Höristphilipp@hoerist.comSupport loading client certs in PEM formathttps://dev.gajim.org/gajim/python-nbxmpp/-/issues/92Proxy SOCKS5 fail to connect2020-03-07T21:47:08ZЕвгений ДомбровскийProxy SOCKS5 fail to connect## Versions
- OS:Windows 7 x64
- Gajim version: 1.1.3
- GTK version: 3.24.1
- Python-nbxmpp version: 0.6.10
## Steps to reproduce the problem
1. install socks5 proxy (Dante)
2. in connections setup proxy type socks5 (ip/p...## Versions
- OS:Windows 7 x64
- Gajim version: 1.1.3
- GTK version: 3.24.1
- Python-nbxmpp version: 0.6.10
## Steps to reproduce the problem
1. install socks5 proxy (Dante)
2. in connections setup proxy type socks5 (ip/port) no auth
3. try to connect to server
## Expected behavior
Successful connection (Pidgin does)
## Actual behavior
Client are closing tcp session to proxy server[socks5.pcap](/uploads/deeaf425bd45ea611541e739506019dc/socks5.pcap)[debug.txt](/uploads/f64e9474d0e6ddcb216a8a81bf490d8d/debug.txt)https://dev.gajim.org/gajim/python-nbxmpp/-/issues/84XEP0070 error2019-09-09T08:30:40ZThomas LegayXEP0070 error## Versions
- OS: Linux
- GTK Version: 3.22.30
- PyGObject Version: 3.26.1
- GLib Version : 2.56.1
- python-nbxmpp Version: 0.9.92
- Gajim Version: 1.1.92+gajim@c51e8498563fb99cfef68bf4ca8820bc3e6807a1+761bf4e54b2c
## Traceback
```
Trac...## Versions
- OS: Linux
- GTK Version: 3.22.30
- PyGObject Version: 3.26.1
- GLib Version : 2.56.1
- python-nbxmpp Version: 0.9.92
- Gajim Version: 1.1.92+gajim@c51e8498563fb99cfef68bf4ca8820bc3e6807a1+761bf4e54b2c
## Traceback
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nbxmpp/dispatcher.py", line 629, in dispatch
handler['func'](session, stanza, properties)
File "/usr/lib/python3/dist-packages/nbxmpp/modules/http_auth.py", line 50, in _process_http_auth
properties.http_auth = HTTPAuthData(**http_auth)
TypeError: __new__() got an unexpected keyword argument 'xmlns'
```
when receive XEP0070 query on gajim
...https://dev.gajim.org/gajim/python-nbxmpp/-/issues/85UnicodeEncodeError: 'OpaqueString' codec can't encode character (DISALLOWED/p...2019-10-11T20:35:52ZDaniel BrötzmannUnicodeEncodeError: 'OpaqueString' codec can't encode character (DISALLOWED/precis_ignorable_properties)## Versions
- OS: Manjaro Linux
- GTK Version: 3.24.10
- PyGObject Version: 3.32.2
- GLib Version : 2.60.4
- python-nbxmpp Version: 0.9.92
- Gajim Version: 1.1.92
## Traceback
```
Traceback (most recent call last):
File "/usr/lib/pyth...## Versions
- OS: Manjaro Linux
- GTK Version: 3.24.10
- PyGObject Version: 3.32.2
- GLib Version : 2.60.4
- python-nbxmpp Version: 0.9.92
- Gajim Version: 1.1.92
## Traceback
```
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/nbxmpp-0.9.92-py3.7.egg/nbxmpp/protocol.py", line 772, in validate_resourcepart
return opaque.enforce(resourcepart)
File "/usr/lib/python3.7/site-packages/precis_i18n/profile.py", line 70, in enforce
return self.base.enforce(temp, self.name)
File "/usr/lib/python3.7/site-packages/precis_i18n/baseclass.py", line 57, in enforce
raise_error(codec_name, value, i, kind)
File "/usr/lib/python3.7/site-packages/precis_i18n/baseclass.py", line 103, in raise_error
raise UnicodeEncodeError(encoding, value, start, end, reason)
UnicodeEncodeError: 'OpaqueString' codec can't encode character '\u061c' in position 0: DISALLOWED/precis_ignorable_properties
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 662, in <lambda>
func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
File "/usr/lib/python3.7/site-packages/nbxmpp-0.9.92-py3.7.egg/nbxmpp/idlequeue.py", line 555, in _process_events
return IdleQueue._process_events(self, fd, flags)
File "/usr/lib/python3.7/site-packages/nbxmpp-0.9.92-py3.7.egg/nbxmpp/idlequeue.py", line 406, in _process_events
obj.pollin()
File "/usr/lib/python3.7/site-packages/nbxmpp-0.9.92-py3.7.egg/nbxmpp/transports.py", line 443, in pollin
self._do_receive()
File "/usr/lib/python3.7/site-packages/nbxmpp-0.9.92-py3.7.egg/nbxmpp/transports.py", line 664, in _do_receive
self._on_receive(received)
File "/usr/lib/python3.7/site-packages/nbxmpp-0.9.92-py3.7.egg/nbxmpp/transports.py", line 678, in _on_receive
self.on_receive(data)
File "/usr/lib/python3.7/site-packages/nbxmpp-0.9.92-py3.7.egg/nbxmpp/dispatcher.py", line 648, in _WaitForData
res = self.ProcessNonBlocking(data)
File "/usr/lib/python3.7/site-packages/nbxmpp-0.9.92-py3.7.egg/nbxmpp/dispatcher.py", line 307, in ProcessNonBlocking
self.Stream.Parse(data)
File "/build/python/src/Python-3.7.4/Modules/pyexpat.c", line 469, in EndElement
File "/usr/lib/python3.7/site-packages/nbxmpp-0.9.92-py3.7.egg/nbxmpp/simplexml.py", line 642, in endtag
self.dispatch(self._mini_dom)
File "/usr/lib/python3.7/site-packages/nbxmpp-0.9.92-py3.7.egg/nbxmpp/dispatcher.py", line 571, in dispatch
stanza, properties.mam = unwrap_mam(stanza, own_jid)
File "/usr/lib/python3.7/site-packages/nbxmpp-0.9.92-py3.7.egg/nbxmpp/modules/misc.py", line 96, in unwrap_mam
message = Message(node=forwarded.getTag('message'))
File "/usr/lib/python3.7/site-packages/nbxmpp-0.9.92-py3.7.egg/nbxmpp/protocol.py", line 1223, in __init__
payload=payload, timestamp=timestamp, xmlns=xmlns, node=node)
File "/usr/lib/python3.7/site-packages/nbxmpp-0.9.92-py3.7.egg/nbxmpp/protocol.py", line 981, in __init__
self.setFrom(self['from'])
File "/usr/lib/python3.7/site-packages/nbxmpp-0.9.92-py3.7.egg/nbxmpp/protocol.py", line 1067, in setFrom
self.setAttr('from', JID(val))
File "/usr/lib/python3.7/site-packages/nbxmpp-0.9.92-py3.7.egg/nbxmpp/protocol.py", line 827, in __init__
self.node, self.domain, self.resource = parse_jid(jid)
File "/usr/lib/python3.7/site-packages/nbxmpp-0.9.92-py3.7.egg/nbxmpp/protocol.py", line 738, in parse_jid
resourcepart = validate_resourcepart(resourcepart)
File "/usr/lib/python3.7/site-packages/nbxmpp-0.9.92-py3.7.egg/nbxmpp/protocol.py", line 774, in validate_resourcepart
raise ResourcepartNotAllowedChar
nbxmpp.protocol.ResourcepartNotAllowedChar: Not allowed character in resourcepart
```
## Steps to reproduce the problem
Triggered by this message in xsf@muc.xmpp.org http://logs.xmpp.org/xsf/2019-09-09?p=h#2019-09-09-2977d6acb5137447 containing '\u061c'. The log following this message has some explanation.https://dev.gajim.org/gajim/python-nbxmpp/-/issues/86AttributeError in _process_pubsub_location: 'NoneType' object has no attribut...2019-12-06T21:32:02Zwess nicholsAttributeError in _process_pubsub_location: 'NoneType' object has no attribute 'getTag'## Versions
- OS: Ubuntu 19.04
- GTK Version: 3.24.8
- PyGObject Version: 3.32.0
- GLib Version : 2.60.0
- python-nbxmpp Version: 0.9.92
- Gajim Version: 1.1.92+gajim@b60b725a9d31f1e018f3c1ad75b03b43849f394d
## Traceback
```
Traceback (...## Versions
- OS: Ubuntu 19.04
- GTK Version: 3.24.8
- PyGObject Version: 3.32.0
- GLib Version : 2.60.0
- python-nbxmpp Version: 0.9.92
- Gajim Version: 1.1.92+gajim@b60b725a9d31f1e018f3c1ad75b03b43849f394d
## Traceback
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nbxmpp/dispatcher.py", line 631, in dispatch
handler['func'](session, stanza, properties)
File "/usr/lib/python3/dist-packages/nbxmpp/modules/location.py", line 49, in _process_pubsub_location
location_node = item.getTag('geoloc', namespace=NS_LOCATION)
AttributeError: 'NoneType' object has no attribute 'getTag'
```
## Steps to reproduce the problem
...https://dev.gajim.org/gajim/python-nbxmpp/-/issues/87idlequeue.py probably doesn't work without GLIB2019-10-16T17:42:18ZSaltyBonesidlequeue.py probably doesn't work without GLIBIn `idlequeue.py` the import of GLib is allowed to fail but then it is used in a class definition. I don't think this can work without GLib. Is that use-case no longer supported?
```
27 # needed for get_idleqeue ...In `idlequeue.py` the import of GLib is allowed to fail but then it is used in a class definition. I don't think this can work without GLib. Is that use-case no longer supported?
```
27 # needed for get_idleqeue
28 try:
29 from gi.repository import GLib
30 HAVE_GLIB = True
31 except ImportError:
32 HAVE_GLIB = False
[...]
526 class GlibIdleQueue(IdleQueue):
527 """
528 Extends IdleQueue to use glib io_add_wath, instead of select/poll In another
529 'non gui' implementation of Gajim IdleQueue can be used safetly
530 """
[...]
574
575 current_time = GLib.get_real_time
```https://dev.gajim.org/gajim/python-nbxmpp/-/issues/88Error when connect on network with captive portal2021-02-19T12:38:24ZtuxayoError 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-pa...## 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
https://dev.gajim.org/gajim/python-nbxmpp/-/issues/89AttributeError: 'NoneType' object has no attribute 'getTagData'2019-11-17T18:56:03ZAndrey GurskyAttributeError: 'NoneType' object has no attribute 'getTagData'* gajim gajim@3898f165aa617a8c58a260d74f5b596d250b36a3
* python-nbxmpp 1a844d5042f
```
11/08/2019 17:40:34 (I) nbxmpp.client | raising event from transport: :::::DATA RECEIVED::::
_____________
<iq to='MYJID@MYSERVER/gajim.MY...* gajim gajim@3898f165aa617a8c58a260d74f5b596d250b36a3
* python-nbxmpp 1a844d5042f
```
11/08/2019 17:40:34 (I) nbxmpp.client | raising event from transport: :::::DATA RECEIVED::::
_____________
<iq to='MYJID@MYSERVER/gajim.MYRESOURCE' from='prosody@conference.prosody.im/nonlinear' type='error' id='0e38d7c2-968b-4202-8747-a0c86613eb2b'><query xmlns='http://jabber.org/protocol/disco#info' node='http://coccinella.sourceforge.net/protocol/caps#BcGNW35SAoxeSyNa9AjY38WiXHU='><error code='404' type='cancel'><item-not-found xmlns='urn:ietf:xml:params:ns:xmpp-stanzas'/></error><x xmlns='jabber:x:data' type='result'><field var='FORM_TYPE' type='hidden'><value>http://coccinella.sourceforge.net/protocol/servers</value></field><field var='putget_port'><value>8235</value></field><field var='http_port'><value>8077</value></field><field var='ip'><value>10.0.1.111</value></field></x></query></iq>
_____________
11/08/2019 17:40:34 (D) nbxmpp.smacks | IN, iq
```
## Versions
- OS: Debian GNU/Linux stretch/sid
- GTK Version: 3.24.12
- PyGObject Version: 3.34.0
- GLib Version : 2.60.6
- python-nbxmpp Version: 0.9.92
- Gajim Version: 1.1.92+3898f165aa61
## Traceback
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 664, in <lambda>
func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/idlequeue.py", line 559, in _process_events
return IdleQueue._process_events(self, fd, flags)
File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/idlequeue.py", line 410, in _process_events
obj.pollin()
File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/transports.py", line 443, in pollin
self._do_receive()
File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/transports.py", line 664, in _do_receive
self._on_receive(received)
File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/transports.py", line 678, in _on_receive
self.on_receive(data)
File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/dispatcher.py", line 692, in _WaitForData
resp(self._owner, _iq, **args)
File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/util.py", line 105, in func_wrapper
result = func(self, stanza, **kwargs)
File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/modules/discovery.py", line 52, in _disco_info_received
return raise_error(log.info, stanza)
File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/util.py", line 155, in raise_error
error = error_factory(stanza, condition, text)
File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/util.py", line 146, in error_factory
return error_classes.get(app_namespace, CommonError)(stanza)
File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/structs.py", line 394, in __init__
self.condition_data = self._error_node.getTagData(self.condition)
AttributeError: 'NoneType' object has no attribute 'getTagData'
```https://dev.gajim.org/gajim/python-nbxmpp/-/issues/91'NonBlockingClient' object has no attribute 'Resource'2020-03-07T21:47:21ZJohn Leach'NonBlockingClient' object has no attribute 'Resource'## Versions
- OS: Ubuntu 19.10
- GTK Version: 3.24.12
- PyGObject Version: 3.34.0
- GLib Version : 2.62.0
- python-nbxmpp Version: 0.9.92
- Gajim Version: 1.1.92+gajim@1ac852f0cd3382f944806ba6a1594fed52cfe57d
## Tracebacks
```
Tracebac...## Versions
- OS: Ubuntu 19.10
- GTK Version: 3.24.12
- PyGObject Version: 3.34.0
- GLib Version : 2.62.0
- python-nbxmpp Version: 0.9.92
- Gajim Version: 1.1.92+gajim@1ac852f0cd3382f944806ba6a1594fed52cfe57d
## Tracebacks
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 664, in <lambda>
func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
File "/usr/lib/python3/dist-packages/nbxmpp/idlequeue.py", line 554, in _process_events
return IdleQueue._process_events(self, fd, flags)
File "/usr/lib/python3/dist-packages/nbxmpp/idlequeue.py", line 405, in _process_events
obj.pollin()
File "/usr/lib/python3/dist-packages/nbxmpp/transports.py", line 443, in pollin
self._do_receive()
File "/usr/lib/python3/dist-packages/nbxmpp/transports.py", line 664, in _do_receive
self._on_receive(received)
File "/usr/lib/python3/dist-packages/nbxmpp/transports.py", line 678, in _on_receive
self.on_receive(data)
File "/usr/lib/python3/dist-packages/nbxmpp/dispatcher.py", line 690, in _WaitForData
resp(_iq)
File "/usr/lib/python3/dist-packages/nbxmpp/bind.py", line 121, in _on_session
self._on_bind_successful()
File "/usr/lib/python3/dist-packages/nbxmpp/bind.py", line 132, in _on_bind_successful
self._owner.Dispatcher.Event(Realm.CONNECTING, Event.CONNECTION_ACTIVE)
File "/usr/lib/python3/dist-packages/nbxmpp/dispatcher.py", line 506, in Event
self._eventHandler(realm, event, data)
File "/usr/lib/python3/dist-packages/gajim/common/connection.py", line 663, in _event_dispatcher
self._on_connection_active()
File "/usr/lib/python3/dist-packages/gajim/common/connection.py", line 1307, in _on_connection_active
self.server_resource = self.connection.Resource
AttributeError: 'NonBlockingClient' object has no attribute 'Resource'
```
and
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 664, in <lambda>
func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
File "/usr/lib/python3/dist-packages/nbxmpp/idlequeue.py", line 554, in _process_events
return IdleQueue._process_events(self, fd, flags)
File "/usr/lib/python3/dist-packages/nbxmpp/idlequeue.py", line 405, in _process_events
obj.pollin()
File "/usr/lib/python3/dist-packages/nbxmpp/transports.py", line 443, in pollin
self._do_receive()
File "/usr/lib/python3/dist-packages/nbxmpp/transports.py", line 664, in _do_receive
self._on_receive(received)
File "/usr/lib/python3/dist-packages/nbxmpp/transports.py", line 678, in _on_receive
self.on_receive(data)
File "/usr/lib/python3/dist-packages/nbxmpp/dispatcher.py", line 325, in ProcessNonBlocking
self._owner.disconnect(self.Stream.streamError)
File "/usr/lib/python3/dist-packages/nbxmpp/client.py", line 188, in disconnect
i()
File "/usr/lib/python3/dist-packages/gajim/common/connection.py", line 561, in _on_disconnect
self.connection.disconnect_handlers = []
AttributeError: 'NoneType' object has no attribute 'disconnect_handlers'
```
## Steps to reproduce the problem
connect to jabber server (I am actually connected to 2) suspend computer. when resuming several hours later, the exceptions are raised.https://dev.gajim.org/gajim/python-nbxmpp/-/issues/93AttributeError: 'NonBlockingClient' object has no attribute 'start_disconnect'2019-12-03T20:39:04ZpitchumAttributeError: 'NonBlockingClient' object has no attribute 'start_disconnect'## Versions
- OS: Arch Linux
- GTK Version: 3.24.12
- PyGObject Version: 3.34.0
- GLib Version : 2.62.2
- python-nbxmpp Version: 0.9.93
- Gajim Version: 1.1.92
## Steps to reproduce the problem
1. Add an account on a server using an i...## Versions
- OS: Arch Linux
- GTK Version: 3.24.12
- PyGObject Version: 3.34.0
- GLib Version : 2.62.2
- python-nbxmpp Version: 0.9.93
- Gajim Version: 1.1.92
## Steps to reproduce the problem
1. Add an account on a server using an invalid certificate.
1. You should see a warning popup.
![screenshot_gajim_certificate_error](/uploads/6564db5a8e149867e9933c72a879310f/screenshot_gajim_certificate_error.png)
1. Click "Abort".
## Expected behavior
The popup should be closed.
## Actual behavior
The popup is still there and the above Exception is raised.https://dev.gajim.org/gajim/python-nbxmpp/-/issues/94OMEMO: 'NoneType' object has no attribute 'getTag'2019-12-11T20:15:11ZAntonio MoraisOMEMO: 'NoneType' object has no attribute 'getTag'## Versions
- OS: Windows 10
- GTK Version: 3.24.13
- PyGObject Version: 3.34.0
- GLib Version : 2.62.1
- python-nbxmpp Version: 0.9.93
- Gajim Version: 1.1.92
## Traceback
```
Traceback (most recent call last):
File "C:/msys64/home/a...## Versions
- OS: Windows 10
- GTK Version: 3.24.13
- PyGObject Version: 3.34.0
- GLib Version : 2.62.1
- python-nbxmpp Version: 0.9.93
- Gajim Version: 1.1.92
## Traceback
```
Traceback (most recent call last):
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/gajim/gui_interface.py", line 1867, in process_connections
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/idlequeue.py", line 512, in process
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/transports.py", line 443, in pollin
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/transports.py", line 664, in _do_receive
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/transports.py", line 678, in _on_receive
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/dispatcher.py", line 323, in ProcessNonBlocking
File "E:/mingwbuild/mingw-w64-python3/src/Python-3.8.0/Modules/pyexpat.c", line 459, in EndElement
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/simplexml.py", line 642, in endtag
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/dispatcher.py", line 616, in dispatch
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/util.py", line 105, in func_wrapper
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/modules/omemo.py", line 214, in _devicelist_received
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/modules/omemo.py", line 171, in _parse_devicelist
AttributeError: 'NoneType' object has no attribute 'getTag'
```
## Steps to reproduce the problem
...https://dev.gajim.org/gajim/python-nbxmpp/-/issues/95AttributeError: 'NonBlockingClient' object has no attribute 'NonBlockingBind'2020-03-07T21:46:26ZbodqhrohroAttributeError: 'NonBlockingClient' object has no attribute 'NonBlockingBind'## Versions
- OS: Debian GNU/Linux bullseye/sid
- GTK+ Version: 3.24.13
- 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/dist...## Versions
- OS: Debian GNU/Linux bullseye/sid
- GTK+ Version: 3.24.13
- 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/dist-packages/gi/overrides/GLib.py", line 664, 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/client_nb.py", line 600, in _on_auth_bind
if self.NonBlockingBind.bound is None:
AttributeError: 'NonBlockingClient' object has no attribute 'NonBlockingBind'
```
## Steps to reproduce the problem
I connected to Prosody just after it was restarted.https://dev.gajim.org/gajim/python-nbxmpp/-/issues/96[OMEMO] TypeError: 'NoneType' object is not iterable2020-01-26T20:12:06ZMarzanna[OMEMO] TypeError: 'NoneType' object is not iterable## Versions
- OS: Ubuntu 19.10
- GTK Version: 3.24.12
- PyGObject Version: 3.34.0
- GLib Version : 2.62.0
- python-nbxmpp Version: 0.9.93
- Gajim Version: 1.1.92+e86951bd4
## Traceback
```
Traceback (most recent call last):
File "/usr...## Versions
- OS: Ubuntu 19.10
- GTK Version: 3.24.12
- PyGObject Version: 3.34.0
- GLib Version : 2.62.0
- python-nbxmpp Version: 0.9.93
- Gajim Version: 1.1.92+e86951bd4
## Traceback
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 664, in <lambda>
func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
File "/usr/lib/python3/dist-packages/nbxmpp/idlequeue.py", line 554, in _process_events
return IdleQueue._process_events(self, fd, flags)
File "/usr/lib/python3/dist-packages/nbxmpp/idlequeue.py", line 405, in _process_events
obj.pollin()
File "/usr/lib/python3/dist-packages/nbxmpp/transports.py", line 443, in pollin
self._do_receive()
File "/usr/lib/python3/dist-packages/nbxmpp/transports.py", line 664, in _do_receive
self._on_receive(received)
File "/usr/lib/python3/dist-packages/nbxmpp/transports.py", line 678, in _on_receive
self.on_receive(data)
File "/usr/lib/python3/dist-packages/nbxmpp/dispatcher.py", line 325, in ProcessNonBlocking
self.Stream.Parse(data)
File "../Modules/pyexpat.c", line 469, in EndElement
File "/usr/lib/python3/dist-packages/nbxmpp/simplexml.py", line 642, in endtag
self.dispatch(self._mini_dom)
File "/usr/lib/python3/dist-packages/nbxmpp/dispatcher.py", line 618, in dispatch
cb(self, stanza, **args)
File "/usr/lib/python3/dist-packages/nbxmpp/util.py", line 112, in func_wrapper
cb()(result, user_data)
File "/home/marza/.local/share/gajim/plugins/omemo/modules/omemo.py", line 481, in _devicelist_received
self._process_devicelist_update(jid, devicelist)
File "/home/marza/.local/share/gajim/plugins/omemo/modules/omemo.py", line 499, in _process_devicelist_update
self.backend.update_devicelist(jid, list(devicelist))
TypeError: 'NoneType' object is not iterable
```
## Steps to reproduce the problem
It happens every time when I start Gajim
If I switch OMEMO off it doesn't happen.https://dev.gajim.org/gajim/python-nbxmpp/-/issues/97Error Message at startup2020-02-07T18:57:57ZStefan ReutterError Message at startup## Versions
- OS: Windows 10
- GTK Version: 3.24.13
- PyGObject Version: 3.34.0
- GLib Version : 2.62.1
- python-nbxmpp Version: 0.9.93
- Gajim Version: 1.1.93
## Traceback
```
Traceback (most recent call last):
File "C:/msys64/home/a...## Versions
- OS: Windows 10
- GTK Version: 3.24.13
- PyGObject Version: 3.34.0
- GLib Version : 2.62.1
- python-nbxmpp Version: 0.9.93
- Gajim Version: 1.1.93
## Traceback
```
Traceback (most recent call last):
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/gajim/gui_interface.py", line 1869, in process_connections
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/idlequeue.py", line 512, in process
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/transports.py", line 443, in pollin
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/transports.py", line 664, in _do_receive
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/transports.py", line 678, in _on_receive
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/dispatcher.py", line 325, in ProcessNonBlocking
File "E:/mingwbuild/mingw-w64-python/src/Python-3.8.1/Modules/pyexpat.c", line 459, in EndElement
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/simplexml.py", line 642, in endtag
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/dispatcher.py", line 618, in dispatch
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/util.py", line 109, in func_wrapper
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/modules/bookmarks.py", line 238, in _bookmarks_received
AttributeError: 'NoneType' object has no attribute 'getChildren'
```
## Steps to reproduce the problem
...https://dev.gajim.org/gajim/python-nbxmpp/-/issues/99Permanent Disconnect / Reconnect2020-02-17T07:40:35ZMatthias KretschmarPermanent Disconnect / Reconnect## Versions
- OS: Windows 10
- GTK Version: 3.24.13
- PyGObject Version: 3.34.0
- GLib Version : 2.62.1
- python-nbxmpp Version: 0.9.93
- Gajim Version: 1.1.93
## Traceback
```
Traceback (most recent call last):
File "C:/msys64/home/a...## Versions
- OS: Windows 10
- GTK Version: 3.24.13
- PyGObject Version: 3.34.0
- GLib Version : 2.62.1
- python-nbxmpp Version: 0.9.93
- Gajim Version: 1.1.93
## Traceback
```
Traceback (most recent call last):
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/gajim/gui_interface.py", line 1866, in process_connections
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/idlequeue.py", line 512, in process
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/transports.py", line 443, in pollin
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/transports.py", line 664, in _do_receive
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/transports.py", line 678, in _on_receive
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/dispatcher.py", line 325, in ProcessNonBlocking
File "E:/mingwbuild/mingw-w64-python/src/Python-3.8.1/Modules/pyexpat.c", line 459, in EndElement
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/simplexml.py", line 642, in endtag
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/dispatcher.py", line 618, in dispatch
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/util.py", line 109, in func_wrapper
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.8/site-packages/nbxmpp/modules/blocking.py", line 50, in _blocking_list_received
AttributeError: 'NoneType' object has no attribute 'getTags'
```
## Steps to reproduce the problem
...https://dev.gajim.org/gajim/python-nbxmpp/-/issues/100'GTlsClientConnectionGnutls' object has no attribute 'set_advertised_protocols'2020-03-12T18:39:46ZJohn Doe'GTlsClientConnectionGnutls' object has no attribute 'set_advertised_protocols'## Versions
- OS: Debian GNU/Linux 10 (buster)
- GTK Version: 3.24.5
- PyGObject Version: 3.34.0
- GLib Version : 2.58.2
- python-nbxmpp Version: 0.9.94
- Gajim Version: 1.1.94+gajim@b38772216f7da25e5a1d5726f56203968abd0b0c
## Traceback...## Versions
- OS: Debian GNU/Linux 10 (buster)
- GTK Version: 3.24.5
- PyGObject Version: 3.34.0
- GLib Version : 2.58.2
- python-nbxmpp Version: 0.9.94
- Gajim Version: 1.1.94+gajim@b38772216f7da25e5a1d5726f56203968abd0b0c
## Traceback
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nbxmpp/tcp.py", line 135, in _on_connect_finished
self._on_connected()
File "/usr/lib/python3/dist-packages/nbxmpp/tcp.py", line 138, in _on_connected
self.notify('connected')
File "/usr/lib/python3/dist-packages/nbxmpp/util.py", line 492, in notify
func(self, signal_name, *args, **kwargs)
File "/usr/lib/python3/dist-packages/nbxmpp/client.py", line 387, in _on_connected
self.set_state(StreamState.CONNECTED)
File "/usr/lib/python3/dist-packages/nbxmpp/client.py", line 218, in set_state
self._xmpp_state_machine()
File "/usr/lib/python3/dist-packages/nbxmpp/client.py", line 528, in _xmpp_state_machine
self._con.start_tls_negotiation()
File "/usr/lib/python3/dist-packages/nbxmpp/tcp.py", line 166, in start_tls_negotiation
tls_client.set_advertised_protocols(['xmpp-client'])
AttributeError: 'GTlsClientConnectionGnutls' object has no attribute 'set_advertised_protocols'
```
## Steps to reproduce the problem
Start Gajim