Jingle: file-sent-error not handled correctly
Just spotted in the log file. Only few seconds after initiating the connection it gets lost. After successfull session resumption there is some issue.
OS: Debian GNU/Linux testing
Gajim: 1.4.0-dev1+c5dec94fe054
GTK Version: 3.24.30
GLib Version: 2.68.3
PyGObject Version: 3.40.1
python-nbxmpp Version: 3.0.0-dev1 (git 22aaefb2b36)
...
11/17/2021 14:28:25 (I) nbxmpp.stream | (MYSERVER) Connect
...
11/17/2021 14:29:25 (I) nbxmpp.connection | (MYSERVER) Remove keepalive timer
11/17/2021 14:29:25 (I) nbxmpp.connection | (MYSERVER) Add keepalive timer
11/17/2021 14:29:25 (I) nbxmpp.connection | (MYSERVER) ::::: DATA RECEIVED ::::
<iq xml:lang='en' to='MYJID@MYSERVER/gajim.P0UTV5AE' from='MYJID@MYSERVER' type='result' id='abcdefgh-ba06-4153-b085-bbf91ffb815a'><pubsub xmlns='http://jabber.
org/protocol/pubsub'><publish node='eu.siacs.conversations.axolotl.bundles:9876543210'><item id='current'/></publish></pubsub></iq>
11/17/2021 14:29:25 (I) nbxmpp.connection | (MYSERVER) Signal: data-received
11/17/2021 14:29:25 (I) nbxmpp.stream | (MYSERVER) Signal: stanza-received
11/17/2021 14:29:25 (D) nbxmpp.smacks | (MYSERVER) IN, iq
11/17/2021 14:29:25 (I) nbxmpp.stream | (MYSERVER) Remove ping timer
11/17/2021 14:29:25 (I) nbxmpp.stream | (MYSERVER) Start ping timer
11/17/2021 14:29:31 (E) nbxmpp.connection | (MYSERVER) Read Error: g-io-error-quark: Error receiving data: Connection reset by peer (44)
11/17/2021 14:29:31 (I) nbxmpp.connection | (MYSERVER) Remove keepalive timer
11/17/2021 14:29:31 (I) nbxmpp.connection | (MYSERVER) g-io-error-quark: Unable to shutdown socket: Transport endpoint is not connected (45)
11/17/2021 14:29:31 (I) nbxmpp.connection | (MYSERVER) Set Connection State: TCPState.DISCONNECTED
11/17/2021 14:29:31 (I) nbxmpp.connection | (MYSERVER) Signal: disconnected
11/17/2021 14:29:31 (I) nbxmpp.stream | (MYSERVER) Set state: StreamState.DISCONNECTED
11/17/2021 14:29:31 (I) nbxmpp.stream | (MYSERVER) Remove ping timer
11/17/2021 14:29:31 (I) nbxmpp.stream | (MYSERVER) Signal: disconnected
11/17/2021 14:29:34 (I) nbxmpp.stream | (MYSERVER) Reconnect
11/17/2021 14:29:34 (I) nbxmpp.stream | (MYSERVER) Set state: StreamState.CONNECTING
11/17/2021 14:29:34 (I) nbxmpp.connection | (MYSERVER) Set Connection State: TCPState.CONNECTING
11/17/2021 14:29:34 (I) nbxmpp.connection | (MYSERVER) Connecting to MYSERVER (IPADDR:5223)
11/17/2021 14:29:34 (I) nbxmpp.connection | (MYSERVER) Set Connection State: TCPState.CONNECTED
11/17/2021 14:29:34 (I) nbxmpp.connection | (MYSERVER) Connected to MYSERVER (IPADDR:5223)
11/17/2021 14:29:34 (I) nbxmpp.connection | (MYSERVER) Signal: connected
11/17/2021 14:29:34 (I) nbxmpp.stream | (MYSERVER) Set state: StreamState.CONNECTED
11/17/2021 14:29:34 (I) nbxmpp.stream | (MYSERVER) Execute state machine
11/17/2021 14:29:34 (I) nbxmpp.connection | (MYSERVER) Start TLS negotiation
11/17/2021 14:29:34 (I) nbxmpp.stream | (MYSERVER) Start stream
11/17/2021 14:29:34 (I) nbxmpp.stream | (MYSERVER) Set state: StreamState.WAIT_FOR_STREAM_START
11/17/2021 14:29:35 (I) nbxmpp.connection | (MYSERVER) Signal: certificate-set
11/17/2021 14:29:35 (I) nbxmpp.connection | (MYSERVER) ::::: DATA SENT ::::
<?xml version='1.0'?><stream:stream xmlns="jabber:client" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" to="MYSERVER" xml:lang="en">
...
11/17/2021 14:29:35 (I) nbxmpp.smacks | (MYSERVER) Session resumption succeeded, session-id: ddddddddAA5nYWppbS5QMFVUVjVBRWgDYgAABmViAAJgPmIDIusj
11/17/2021 14:29:35 (D) nbxmpp.smacks | (MYSERVER) Validate ack, our h: 58, server h: 28, queue: 30
11/17/2021 14:29:35 (D) nbxmpp.smacks | (MYSERVER) Removing 0 stanzas from queue
11/17/2021 14:29:35 (I) nbxmpp.stream | (MYSERVER) Set state: StreamState.RESUME_SUCCESSFUL
11/17/2021 14:29:35 (I) nbxmpp.stream | (MYSERVER) Execute state machine
11/17/2021 14:29:35 (I) nbxmpp.stream | (MYSERVER) Set state: StreamState.ACTIVE
11/17/2021 14:29:35 (I) nbxmpp.stream | (MYSERVER) Signal: resume-successful
11/17/2021 14:29:35 (I) nbxmpp.smacks | (MYSERVER) Resend 30 stanzas
...
11/17/2021 14:29:35 (I) nbxmpp.connection | (MYSERVER) Signal: data-sent
11/17/2021 14:29:35 (I) nbxmpp.stream | (MYSERVER) Signal: stanza-sent
11/17/2021 14:29:35 (I) nbxmpp.connection | (MYSERVER) Signal: data-sent
11/17/2021 14:29:35 (I) nbxmpp.stream | (MYSERVER) Signal: stanza-sent
11/17/2021 14:29:35 (I) nbxmpp.connection | (MYSERVER) Signal: data-sent
11/17/2021 14:29:35 (I) nbxmpp.stream | (MYSERVER) Signal: stanza-sent
11/17/2021 14:29:35 (I) nbxmpp.connection | (MYSERVER) Signal: data-sent
11/17/2021 14:29:35 (I) nbxmpp.stream | (MYSERVER) Signal: stanza-sent
11/17/2021 14:29:35 (I) nbxmpp.connection | (MYSERVER) Signal: data-sent
11/17/2021 14:29:35 (I) nbxmpp.stream | (MYSERVER) Signal: stanza-sent
11/17/2021 14:29:35 (I) nbxmpp.connection | (MYSERVER) Remove keepalive timer
11/17/2021 14:29:35 (I) nbxmpp.connection | (MYSERVER) Add keepalive timer
11/17/2021 14:29:35 (I) nbxmpp.connection | (MYSERVER) ::::: DATA RECEIVED ::::
<iq xml:lang='en' to='MYJID@MYSERVER/gajim.P0UTV5AE' from='MYJID@MYSERVER' type='error' id='12345678-af34-4fe3-ad00-1e259f531f9e'><pubsub xmlns='http://jabber.org/protocol/pubsub'><items node='eu.siacs.conversations.axolotl.bundles:1234567890' max_items='1'/></pubsub><error code='404' type='cancel'><item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/><text xml:lang='en' xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Node not found</text></error></iq>
11/17/2021 14:29:35 (I) nbxmpp.connection | (MYSERVER) Signal: data-received
11/17/2021 14:29:35 (I) nbxmpp.stream | (MYSERVER) Signal: stanza-received
11/17/2021 14:29:35 (D) nbxmpp.smacks | (MYSERVER) IN, iq
11/17/2021 14:29:35 (E) gajim.c.ged | Error while running an event handler: <bound method Interface.handle_event_file_send_error of <gajim.gui_interface.Interface object at 0x7f31b4f332e0>>
Traceback (most recent call last):
File "/home/andrey/progs/gajim.git/gajim/common/ged.py", line 101, in raise_event
if handler(*args, **kwargs):
File "/home/andrey/progs/gajim.git/gajim/gui_interface.py", line 530, in handle_event_file_send_error
ft.set_status(event.file_props, 'stop')
File "/home/andrey/progs/gajim.git/gajim/gtk/filetransfer.py", line 497, in set_status
iter_ = self.get_iter_by_sid(file_props.type_, file_props.sid)
AttributeError: 'str' object has no attribute 'type_'
11/17/2021 14:29:35 (E) nbxmpp.dispatcher | (MYSERVER) Handler exception:
Traceback (most recent call last):
File "/home/andrey/progs/python-nbxmpp.git/nbxmpp/dispatcher.py", line 468, in dispatch
handler['func'](self._client, stanza, properties)
File "/home/andrey/progs/gajim.git/gajim/common/modules/iq.py", line 69, in _iq_error_received
self._con.get_module('Bytestream').disconnect_transfer(
File "/home/andrey/progs/gajim.git/gajim/common/modules/bytestream.py", line 242, in disconnect_transfer
if file_props.hash_:
AttributeError: 'str' object has no attribute 'hash_'
11/17/2021 14:29:35 (I) nbxmpp.stream | (MYSERVER) Remove ping timer