python-nbxmpp issueshttps://dev.gajim.org/gajim/python-nbxmpp/-/issues2020-03-07T21:47:43Zhttps://dev.gajim.org/gajim/python-nbxmpp/-/issues/90Connection fails if trying to connect using TOR2020-03-07T21:47:43ZMartinConnection fails if trying to connect using TOR## Versions
- OS: Debian 9 Stretch
- Gajim version: gajim-default-nightly/unstable,unstable,unstable,now 20171023-1 (in info it says 0.16.11.1)
- GTK version: 3.22.11
- Python-nbxmpp version: 0.6.0
## Steps to reproduce the pr...## Versions
- OS: Debian 9 Stretch
- Gajim version: gajim-default-nightly/unstable,unstable,unstable,now 20171023-1 (in info it says 0.16.11.1)
- GTK version: 3.22.11
- Python-nbxmpp version: 0.6.0
## Steps to reproduce the problem
Set up your account to connect via Proxy (SOCKS5, localhost, 9050)
## Expected behavior
Gajim starts and is connecting using TOR
## Actual behavior
Gajim fails to connect (changing localhost to 127.0.0.1 doesn't make any difference)
```
26.10.2017 19:34:41 (I) nbxmpp.proxy_connectors: Authentification successfull. Jabber server contacted.
26.10.2017 19:34:41 (I) nbxmpp.transports_nb: Plugging fd 18, W:True, R:True
26.10.2017 19:34:41 (I) nbxmpp.transports_nb: pollout called, state == PROXY_CONNECTING
26.10.2017 19:34:41 (I) nbxmpp.transports_nb: Plugging fd 18, W:False, R:True
26.10.2017 19:34:41 (E) nbxmpp.transports_nb: _do_send:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nbxmpp/transports_nb.py", line 584, in _do_send
sent_data = decode_py2(sent_data, 'utf-8')
File "/usr/lib/python3/dist-packages/nbxmpp/transports_nb.py", line 91, in decode_py2
string = string.decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8f in position 5: invalid start byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nbxmpp/transports_nb.py", line 588, in _do_send
if ord(char) & 0xc0 == 0xc0:
TypeError: ord() expected string of length 1, but int found
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nbxmpp/transports_nb.py", line 584, in _do_send
sent_data = decode_py2(sent_data, 'utf-8')
File "/usr/lib/python3/dist-packages/nbxmpp/transports_nb.py", line 91, in decode_py2
string = string.decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8f in position 5: invalid start byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nbxmpp/transports_nb.py", line 588, in _do_send
if ord(char) & 0xc0 == 0xc0:
TypeError: ord() expected string of length 1, but int found
26.10.2017 19:34:41 (I) nbxmpp.client_nb: Disconnecting NBClient:
26.10.2017 19:34:41 (I) nbxmpp.plugin: Plugging <nbxmpp.transports_nb.NonBlockingTCP object at 0x7f887be597f0> __OUT__ of <nbxmpp.client_nb.NonBlockingClient object at 0x7f888998f4a8>.
26.10.2017 19:34:41 (E) gajim.c.connection: Connection to proxy failed:
26.10.2017 19:34:41 (D) gajim.c.ged: our-show Args: (<gajim.common.connection_handlers_events.OurShowEvent object at 0x7f887be4eeb8>,)
26.10.2017 19:34:41 (D) gajim.plugin_system: ClientsIconsPlugin.connect_with_roster_draw_contact() <entered>
26.10.2017 19:34:41 (D) gajim.plugin_system: ClientsIconsPlugin.connect_with_roster_draw_contact() <left>
26.10.2017 19:34:41 (D) gajim.conversation_textview: Printed Line: 4, martin ist jetzt Abgemeldet, 1509039281.6551602, inserted after: None, stanza-id: None, correct-id: None
26.10.2017 19:34:41 (D) gajim.plugin_system: ClientsIconsPlugin.connect_with_roster_draw_contact() <entered>
26.10.2017 19:34:41 (D) gajim.plugin_system: ClientsIconsPlugin.connect_with_roster_draw_contact() <left>
26.10.2017 19:34:41 (D) gajim.c.ged: connection-lost Args: (<gajim.common.connection_handlers_events.ConnectionLostEvent object at 0x7f8889987f60>,)
```https://dev.gajim.org/gajim/python-nbxmpp/-/issues/81High CPU usage when connected to a domain with both AAAA and A record but no ...2020-03-07T21:50:09ZCedricHigh CPU usage when connected to a domain with both AAAA and A record but no IPv6 support## Versions
- OS: Mac OS 10.13.1
- Gajim version: Master branch commit gajim@4c45c186c4bd41233a7cc9dcd5b53e760ac3ec26
- GTK version: 3.22.25
- Python-nbxmpp version: Master branch commit 3417ccbf921c7f5e68ce05e8108f4cf2fcc80860
...## Versions
- OS: Mac OS 10.13.1
- Gajim version: Master branch commit gajim@4c45c186c4bd41233a7cc9dcd5b53e760ac3ec26
- GTK version: 3.22.25
- Python-nbxmpp version: Master branch commit 3417ccbf921c7f5e68ce05e8108f4cf2fcc80860
## Steps to reproduce the problem
I installed python3 master branch version like described in the wiki (https://dev.gajim.org/gajim/gajim/wikis/help/GajimMacOSX) and had no issues connecting to my server and to write other people.
## Actual behavior
The cpu usage of the python gajim process is always at 100%. And the log is spammed with this error:
`
...
03.11.2017 20:31:11 (E) nbxmpp.transports_nb _do_send:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/nbxmpp/transports_nb.py", line 573, in _do_send
send_count = self._send(self.sendbuff)
OSError: [Errno 9] Bad file descriptor
...
`
When I run gajim in a iPython console with profiling enabled I get the related message:
`03.11.2017 20:28:27 (W) nbxmpp.transports_nb calling send on empty buffer and queue`
I'm happy to provide additional info if needed. I would be great to have a xmpp client on Mac OS again.https://dev.gajim.org/gajim/python-nbxmpp/-/issues/67SSL error during connection loss; OpenSSL.SSL.SysCallError (-1, 'Unexpected E...2020-03-07T21:45:01ZAndrey GurskySSL error during connection loss; OpenSSL.SSL.SysCallError (-1, 'Unexpected EOF')* Gajim git master 06.06.2018
* python-nbxmpp 0.6.6
It is already not the first time I saw this (but I don't remember such errors with Gajim 0.16.x).
```
06/17/2018 23:53:40 (I) nbxmpp.transports_nb _do_receive, caught SSL error, got No...* Gajim git master 06.06.2018
* python-nbxmpp 0.6.6
It is already not the first time I saw this (but I don't remember such errors with Gajim 0.16.x).
```
06/17/2018 23:53:40 (I) nbxmpp.transports_nb _do_receive, caught SSL error, got None:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nbxmpp/tls_nb.py", line 172, in recv
retval = self.sslobj.recv(bufsize)
File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1686, in recv
self._raise_ssl_error(self._ssl, result)
File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1541, in _raise_ssl_error
raise SysCallError(-1, "Unexpected EOF")
OpenSSL.SSL.SysCallError: (-1, 'Unexpected EOF')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nbxmpp/transports_nb.py", line 616, in _do_receive
received = self._recv(RECV_BUFSIZE)
File "/usr/lib/python3/dist-packages/nbxmpp/tls_nb.py", line 180, in recv
raise SSLWrapper.Error(self.sock or self.sslobj, e)
nbxmpp.tls_nb.SSLWrapper.Error: <class 'nbxmpp.tls_nb.SSLWrapper.Error'> for 146.255.57.229:5222: [Errno: -1] ((-1, 'Unexpected EOF')), Caused by <class 'OpenSSL.SSL.SysCallError'>((-1, 'Unexpected EOF'))
06/17/2018 23:53:40 (I) nbxmpp.transports_nb Disconnected by remote server: #-1, (-1, 'Unexpected EOF')
06/17/2018 23:53:40 (I) nbxmpp.client_nb Disconnecting NBClient:
06/17/2018 23:53:40 (D) nbxmpp.client_nb Client disconnected..
```https://dev.gajim.org/gajim/python-nbxmpp/-/issues/54Error in send_ack: 'NoneType' object has no attribute 'send'2020-03-07T21:49:38ZpokamtError in send_ack: 'NoneType' object has no attribute 'send'## Versions
- OS: Windows 10
- GTK+ Version: 3.22.30
- PyGObject Version: 3.28.2
- python-nbxmpp Version: 0.6.6
- Gajim Version: 1.0.3
## Traceback
```
Traceback (most recent call last):
File "C:/msys64/home/appveyor/gajim/win/_build_...## Versions
- OS: Windows 10
- GTK+ Version: 3.22.30
- PyGObject Version: 3.28.2
- python-nbxmpp Version: 0.6.6
- Gajim Version: 1.0.3
## Traceback
```
Traceback (most recent call last):
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.6/site-packages/nbxmpp/dispatcher_nb.py", line 498, in dispatch
File "C:/msys64/home/appveyor/gajim/win/_build_root/mingw64/lib/python3.6/site-packages/nbxmpp/smacks.py", line 111, in send_ack
AttributeError: 'NoneType' object has no attribute 'send'
```
## Steps to reproduce the problem
...https://dev.gajim.org/gajim/python-nbxmpp/-/issues/55Endless loop if server crashes while negotiating TLS2020-03-07T21:43:19ZPhilipp Höristphilipp@hoerist.comEndless loop if server crashes while negotiating TLS```
_____________
<?xml version='1.0'?><stream:stream xmlns='jabber:client' from='localhost' xmlns:stream='http://etherx.jabber.org/streams' xml:lang='en' id='c5a9f300-db2e-40b2-a505-b05373f259c0' version='1.0'><stream:features><starttls...```
_____________
<?xml version='1.0'?><stream:stream xmlns='jabber:client' from='localhost' xmlns:stream='http://etherx.jabber.org/streams' xml:lang='en' id='c5a9f300-db2e-40b2-a505-b05373f259c0' version='1.0'><stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism></mechanisms></stream:features>
_____________
27/07/18 13:45:29 (D) gajim.c.ged: stanza-received Args: (<gajim.common.connection_handlers_events.StanzaReceivedEvent object at 0x7f7f1ced1cc0>,)
27/07/18 13:45:29 (I) nbxmpp.client_nb: -------------xmpp_connect_machine() >> mode: RECEIVE_DOCUMENT_ATTRIBUTES, data: <?xml version='1.0'?...
27/07/18 13:45:29 (I) nbxmpp.client_nb: got STREAM FEATURES in first recv
27/07/18 13:45:29 (I) nbxmpp.client_nb: -------------xmpp_connect_machine() >> mode: STREAM_STARTED, data: None...
27/07/18 13:45:29 (I) nbxmpp.client_nb: TLS supported by remote server. Requesting TLS start.
27/07/18 13:45:29 (I) nbxmpp.client_nb: -------------tls_negotiaton_handler() >> tag: None
27/07/18 13:45:29 (I) nbxmpp.transports_nb: Plugging fd 19, W:True, R:True
27/07/18 13:45:29 (I) nbxmpp.transports_nb: pollout called, state == CONNECTED
27/07/18 13:45:29 (I) nbxmpp.transports_nb: Plugging fd 19, W:False, R:True
27/07/18 13:45:29 (I) nbxmpp.client_nb: raising event from transport: :::::DATA SENT::::
_____________
<starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
_____________
27/07/18 13:45:29 (D) gajim.c.ged: stanza-sent Args: (<gajim.common.connection_handlers_events.StanzaSentEvent object at 0x7f7f1ced1eb8>,)
27/07/18 13:45:29 (I) nbxmpp.transports_nb: pollin called, state == CONNECTED
27/07/18 13:45:29 (I) nbxmpp.idlequeue: read timeout removed for fd 19
27/07/18 13:45:29 (I) nbxmpp.client_nb: raising event from transport: :::::DATA RECEIVED::::
_____________
_____________
27/07/18 13:45:29 (D) gajim.c.ged: stanza-received Args: (<gajim.common.connection_handlers_events.StanzaReceivedEvent object at 0x7f7f1ced1f60>,)
27/07/18 13:45:29 (I) nbxmpp.transports_nb: pollin called, state == CONNECTED
27/07/18 13:45:29 (I) nbxmpp.idlequeue: read timeout removed for fd 19
27/07/18 13:45:29 (I) nbxmpp.client_nb: raising event from transport: :::::DATA RECEIVED::::
_____________
_____________
27/07/18 13:45:29 (D) gajim.c.ged: stanza-received Args: (<gajim.common.connection_handlers_events.StanzaReceivedEvent object at 0x7f7f1ced1f60>,)
27/07/18 13:45:29 (I) nbxmpp.transports_nb: pollin called, state == CONNECTED
27/07/18 13:45:29 (I) nbxmpp.idlequeue: read timeout removed for fd 19
27/07/18 13:45:29 (I) nbxmpp.client_nb: raising event from transport: :::::DATA RECEIVED::::
_____________
```https://dev.gajim.org/gajim/python-nbxmpp/-/issues/63Gajim in endless loop trying to reconnect if networking has been stopped and ...2020-03-07T21:43:58ZAndrey GurskyGajim in endless loop trying to reconnect if networking has been stopped and then started manually- Gajim git master gajim@d129f5559a88249f350bc6a0665f87610f79671d
- python-nbxmpp git master c58e9751d77
How to reproduce:
- stop network (```/etc/init.d/networking stop```)
- Gajim starts timeout (if start network until it expires, it ...- Gajim git master gajim@d129f5559a88249f350bc6a0665f87610f79671d
- python-nbxmpp git master c58e9751d77
How to reproduce:
- stop network (```/etc/init.d/networking stop```)
- Gajim starts timeout (if start network until it expires, it is all OK)
- Gajim tries to reconnect and fails
- Gajim tries to reconnect and fails for the second time
- start network (```/etc/init.d/networking start```)
- Gajim goes into endless loop
Log: [BUG-gajim-manually-stop-start-networking-for-upload.txt](/uploads/4368b9c39468a03f9f6ca9590ba928a2/BUG-gajim-manually-stop-start-networking-for-upload.txt)https://dev.gajim.org/gajim/python-nbxmpp/-/issues/80Network disconnect throws TypeError: disconnect() got an unexpected keyword a...2020-03-08T12:45:06ZMark TetrodeNetwork disconnect throws TypeError: disconnect() got an unexpected keyword argument 'err_message'## Versions
- OS: Linux
- GTK+ Version: 3.22.30
- PyGObject Version: 3.26.1
- python-nbxmpp Version: 0.6.4
- Gajim Version: 1.0.1
## Traceback
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gi/overrides/GL...## Versions
- OS: Linux
- GTK+ Version: 3.22.30
- PyGObject Version: 3.26.1
- python-nbxmpp Version: 0.6.4
- Gajim Version: 1.0.1
## Traceback
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 747, 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 422, in _process_events
obj.pollend()
File "/usr/lib/python3/dist-packages/nbxmpp/transports_nb.py", line 476, in pollend
(self.server, self.port))
File "/usr/lib/python3/dist-packages/nbxmpp/transports_nb.py", line 218, in _on_connect_failure
self.on_connect_failure(err_message=err_message)
TypeError: disconnect() got an unexpected keyword argument 'err_message'
```
## Steps to reproduce the problem
...https://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/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/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/108'NoneType' object has no attribute 'get_input_stream'2020-10-10T19:15:11Zpipantal'NoneType' object has no attribute 'get_input_stream'## Versions
- OS: Ubuntu 20.04 LTS
- GTK Version: 3.24.18
- PyGObject Version: 3.36.0
- GLib Version : 2.64.1
- python-nbxmpp Version: 0.9.95
- Gajim Version: 1.1.99.1+gajim@534a29479bf8501da1ef59ffd1b818c06eac3ccf
## Traceback
```
Trac...## Versions
- OS: Ubuntu 20.04 LTS
- GTK Version: 3.24.18
- PyGObject Version: 3.36.0
- GLib Version : 2.64.1
- python-nbxmpp Version: 0.9.95
- Gajim Version: 1.1.99.1+gajim@534a29479bf8501da1ef59ffd1b818c06eac3ccf
## Traceback
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nbxmpp/tcp.py", line 252, in _on_read_async_finish
self._read_async()
File "/usr/lib/python3/dist-packages/nbxmpp/tcp.py", line 187, in _read_async
self._con.get_input_stream().read_bytes_async(
AttributeError: 'NoneType' object has no attribute 'get_input_stream'
```
## Steps to reproduce the problem
...https://dev.gajim.org/gajim/python-nbxmpp/-/issues/114Error after loss of internet connectivity2020-11-07T13:02:53ZEugene CrosserError after loss of internet connectivity## Versions
- OS: Ubuntu 20.10
- GTK Version: 3.24.23
- PyGObject Version: 3.38.0
- GLib Version : 2.66.0
- python-nbxmpp Version: 1.91.0
- Gajim Version: 1.2.91+gajim@784829645c4262306cdaf09b0bae9e4748af5bb5
## Traceback
```
Traceback ...## Versions
- OS: Ubuntu 20.10
- GTK Version: 3.24.23
- PyGObject Version: 3.38.0
- GLib Version : 2.66.0
- python-nbxmpp Version: 1.91.0
- Gajim Version: 1.2.91+gajim@784829645c4262306cdaf09b0bae9e4748af5bb5
## Traceback
```
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nbxmpp/dispatcher.py", line 498, in _timeout_check
func(self._client, None, **user_data)
File "/usr/lib/python3/dist-packages/nbxmpp/task.py", line 313, in _async_finished
self._set_finished()
File "/usr/lib/python3/dist-packages/nbxmpp/task.py", line 214, in _set_finished
self._finalize()
File "/usr/lib/python3/dist-packages/nbxmpp/task.py", line 320, in _finalize
self._client._dispatcher.remove_iq_callback(self._iq_id)
AttributeError: 'NoneType' object has no attribute '_dispatcher'
```
## Steps to reproduce the problem
- Have gajim running
- Get the host disconnected from the Internet
- Wait
After a few minutes after loss of uplink connectivity, automated "send error report" window appears, and here is this report. After connectivity was restored, gajim continued to function normally, the incident did not break anything.https://dev.gajim.org/gajim/python-nbxmpp/-/issues/132xmpp-websocket: Missing User-Agent field2023-12-22T11:06:23Zcr04chxmpp-websocket: Missing User-Agent field## Versions
- OS: Debian GNU/Linux bookworm/sid
- Gajim version: 1.5.2
- GTK version: 3.24.34
- Python-nbxmpp version: 3.2.4
There is no User-Agent field in the request sent by Gajim when trying to establish a websocket connect...## Versions
- OS: Debian GNU/Linux bookworm/sid
- Gajim version: 1.5.2
- GTK version: 3.24.34
- Python-nbxmpp version: 3.2.4
There is no User-Agent field in the request sent by Gajim when trying to establish a websocket connection.