id

327

publisher

goffi@goffi.org/4f0aef1e-a132-4e4f-af17-4075d98b06ba

title
chat message can't be sent in HTTPS with Libervia pages
author
Goffi
created
12/07/2019, 16:11
updated
14/07/2019, 13:07
labels
libervia libervia pages chat
type
bug
status
closed
priority
normal
milestone
0.7
severity
major
body

While sending a chat message is working fine in HTTP (e.g. with localhost), it's not working at all with HTTPS. The following traceback is received:

2019-07-12 18:09:55+0200 [_GenericHTTPChannelProtocol (TLSMemoryBIOProtocol),14,192.168.0.105] /!\ [twisted] ERROR:dbus.connection:Unable to set arguments (u'test@conference.tazar2.int', {u'': u'rfdssd'}, {}, 'groupchat', {}, None) according to signature u'sa{ss}a{ss}sa{ss}s': <type 'exceptions.TypeError'>: Expected a string or unicode object
2019-07-12 18:09:55+0200 [_GenericHTTPChannelProtocol (TLSMemoryBIOProtocol),14,192.168.0.105] /!\ [twisted] Unhandled Error
        Traceback (most recent call last):
          File "/home/goffi/dev/lib/twisted/python/log.py", line 103, in callWithLogger
            return callWithContext({"system": lp}, func, *args, **kw)
          File "/home/goffi/dev/lib/twisted/python/log.py", line 86, in callWithContext
            return context.call({ILogContext: newCtx}, func, *args, **kw)
          File "/home/goffi/dev/lib/twisted/python/context.py", line 122, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/home/goffi/dev/lib/twisted/python/context.py", line 85, in callWithContext
            return func(*args,**kw)
        --- <exception caught here> ---
          File "/home/goffi/dev/lib/twisted/internet/posixbase.py", line 614, in _doReadOrWrite
            why = selectable.doRead()
          File "/home/goffi/dev/lib/twisted/internet/tcp.py", line 243, in doRead
            return self._dataReceived(data)
          File "/home/goffi/dev/lib/twisted/internet/tcp.py", line 249, in _dataReceived
            rval = self.protocol.dataReceived(data)
          File "/home/goffi/dev/lib/twisted/protocols/tls.py", line 330, in dataReceived
            self._flushReceiveBIO()
          File "/home/goffi/dev/lib/twisted/protocols/tls.py", line 295, in _flushReceiveBIO
            ProtocolWrapper.dataReceived(self, bytes)
          File "/home/goffi/dev/lib/twisted/protocols/policies.py", line 120, in dataReceived
            self.wrappedProtocol.dataReceived(data)
          File "/usr/lib/python2.7/site-packages/autobahn/twisted/websocket.py", line 135, in dataReceived
            self._dataReceived(data)
          File "/usr/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 1182, in _dataReceived
            self.consumeData()
          File "/usr/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 1194, in consumeData
            while self.processData() and self.state != WebSocketProtocol.STATE_CLOSED:
          File "/usr/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 1560, in processData
            fr = self.onFrameEnd()
          File "/usr/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 1682, in onFrameEnd
            self._onMessageEnd()
          File "/usr/lib/python2.7/site-packages/autobahn/twisted/websocket.py", line 163, in _onMessageEnd
            self.onMessageEnd()
          File "/usr/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 628, in onMessageEnd
            self._onMessage(payload, self.message_is_binary)
          File "/usr/lib/python2.7/site-packages/autobahn/twisted/websocket.py", line 166, in _onMessage
            self.onMessage(payload, isBinary)
          File "/home/goffi/dev/lib/libervia/server/websockets.py", line 94, in onMessage
            cb(page, self.request, data_json)
          File "/home/goffi/dev/lib/libervia/pages/chat/page_meta.py", line 109, in on_data
            {},
          File "/home/goffi/dev/lib/libervia/server/server.py", line 2160, in bridgeCall
            getattr(self.bridge, method_name)(*args, **kwargs)
          File "/home/goffi/dev/lib/sat_frontends/bridge/dbus_bridge.py", line 583, in messageSend
            return self.db_core_iface.messageSend(to_jid, message, subject, mess_type, extra, profile_key, timeout=const_TIMEOUT, reply_handler=callback, error_handler=error_handler)
          File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 137, in __call__
            **keywords)
          File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 584, in call_async
            message.append(signature=signature, *args)
        exceptions.TypeError: Expected a string or unicode object
comments_uri
xmpp:pubsub.goffi.org?;node=urn%3Axmpp%3Amicroblog%3A0%3Acomments%2Forg.salut-a-toi.tickets%3A0_wbfpUkeagYiXquMihYisiH

You are not logged. You need to log in to comment.