Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Failed to get displayname - InvalidCodepoint #4032

Closed
progserega opened this issue Oct 12, 2018 · 11 comments
Closed

Failed to get displayname - InvalidCodepoint #4032

progserega opened this issue Oct 12, 2018 · 11 comments
Labels
z-bug (Deprecated Label) z-p2 (Deprecated Label)

Comments

@progserega
Copy link

progserega commented Oct 12, 2018

Description

Describe here the problem that you are experiencing, or the feature you are requesting.

Steps to reproduce

  • Unknown - this is remote user

Error in logs:

    2018-10-12 17:32:31,709 - synapse.handlers.profile - 146 - ERROR - POST-442241- Failed to get displayname
    Traceback (most recent call last): 
      File "/usr/lib/python2.7/dist-packages/synapse/handlers/profile.py", line 139, in get_displayname
        ignore_backoff=True,
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/federation/transport/client.py", line 191, in make_query
        ignore_backoff=ignore_backoff,
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/http/matrixfederationclient.py", line 486, in get_json
        ignore_backoff=ignore_backoff,
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/http/matrixfederationclient.py", line 199, in _request
        request_deferred,
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/http/endpoint.py", line 154, in connect
        conn = yield self.endpoint_fac.connect(protocolFactory)
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1386, in _inlineCallbacks
        result = g.send(result)
      File "/usr/lib/python2.7/dist-packages/synapse/http/endpoint.py", line 334, in connect
        self.reactor, server.host, server.port, **self.endpoint_kw_args
      File "/usr/lib/python2.7/dist-packages/synapse/http/endpoint.py", line 131, in transport_endpoint
        tls_client_options_factory.get_options(host),
      File "/usr/lib/python2.7/dist-packages/synapse/crypto/context_factory.py", line 127, in get_options
        CertificateOptions(verify=False).getContext()
      File "/usr/lib/python2.7/dist-packages/synapse/crypto/context_factory.py", line 100, in __init__
        self._hostnameBytes = _idnaBytes(hostname)
      File "/usr/lib/python2.7/dist-packages/synapse/crypto/context_factory.py", line 67, in _idnaBytes
        return idna.encode(text)
      File "/usr/lib/python2.7/dist-packages/idna/core.py", line 355, in encode 
        result.append(alabel(label))
      File "/usr/lib/python2.7/dist-packages/idna/core.py", line 276, in alabel 
        check_label(label)
      File "/usr/lib/python2.7/dist-packages/idna/core.py", line 253, in check_label
        raise InvalidCodepoint('Codepoint {0} at position {1} of {2} not allowed'.format(_unot(cp_value), pos+1, repr(label)))
    InvalidCodepoint: Codepoint U+0020 at position 3 of u'ru ' not allowed

Version information

ii matrix-synapse 0.33.4-1mx1
debian 9.5

  • own Homeserver: rsprim.ru

$ curl -v https://rsprim.ru/_matrix/client/versions 2>&1 | grep "Server:"

Server: nginx/1.10.3

@progserega
Copy link
Author

progserega commented Oct 12, 2018

Such problem from another user:

     2018-10-12 17:32:31,783 - synapse.http.matrixfederationclient - 222 - WARNING - POST-442241- {GET-O-141762} Sending request failed to rsprim.ru : GET matrix://rsprim.ru /_matrix/federation/v1/query/profile?field=avatar_url&user_id=%40belik%3Arsprim.ru+: InvalidCodepoint("Codepoint U+0020 at position 3 of u'ru '    __ not allowed",)
    2018-10-12 17:32:31,784 - synapse.http.outbound - 246 - INFO - POST-442241- {GET-O-141762} [rsprim.ru ] Result: InvalidCodepoint("Codepoint U+0020 at position 3 of u'ru ' not allowed",)
    2018-10-12 17:32:31,789 - synapse.handlers.profile - 203 - ERROR - POST-442241- Failed to get avatar_url
    Traceback (most recent call last): 
      File "/usr/lib/python2.7/dist-packages/synapse/handlers/profile.py", line 196, in get_avatar_url
        ignore_backoff=True,
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/federation/transport/client.py", line 191, in make_query
        ignore_backoff=ignore_backoff,
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/http/matrixfederationclient.py", line 486, in get_json
        ignore_backoff=ignore_backoff,
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/http/matrixfederationclient.py", line 199, in _request
        request_deferred,
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/http/endpoint.py", line 154, in connect
        conn = yield self.endpoint_fac.connect(protocolFactory)
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1386, in _inlineCallbacks
        result = g.send(result)
      File "/usr/lib/python2.7/dist-packages/synapse/http/endpoint.py", line 334, in connect
        self.reactor, server.host, server.port, **self.endpoint_kw_args
      File "/usr/lib/python2.7/dist-packages/synapse/http/endpoint.py", line 131, in transport_endpoint
        tls_client_options_factory.get_options(host),
      File "/usr/lib/python2.7/dist-packages/synapse/crypto/context_factory.py", line 127, in get_options
        CertificateOptions(verify=False).getContext()
      File "/usr/lib/python2.7/dist-packages/synapse/crypto/context_factory.py", line 100, in __init__
        self._hostnameBytes = _idnaBytes(hostname)
      File "/usr/lib/python2.7/dist-packages/synapse/crypto/context_factory.py", line 67, in _idnaBytes
        return idna.encode(text)
      File "/usr/lib/python2.7/dist-packages/idna/core.py", line 355, in encode 
        result.append(alabel(label))
      File "/usr/lib/python2.7/dist-packages/idna/core.py", line 276, in alabel 
        check_label(label)
      File "/usr/lib/python2.7/dist-packages/idna/core.py", line 253, in check_label
        raise InvalidCodepoint('Codepoint {0} at position {1} of {2} not allowed'.format(_unot(cp_value), pos+1, repr(label)))
    InvalidCodepoint: Codepoint U+0020 at position 3 of u'ru ' not allowed
    2018-10-12 17:32:31,804 - synapse.handlers.message - 308 - INFO - POST-442241- Failed to get profile information for @belik:rsprim.ru : local variable 'result' referenced before assignment
    2018-10-12 17:32:31,814 - twisted - 131 - INFO - - (UDP Port 65266 Closed)

@progserega
Copy link
Author

Users add utf8 display name and it is fail on server?

@progserega
Copy link
Author

And again such problem:

   2018-10-12 17:32:35,427 - synapse.http.endpoint - 332 - INFO - - Connecting to rsprim.ru :8448
    2018-10-12 17:32:35,433 - synapse.http.matrixfederationclient - 222 - WARNING - POST-442241- {PUT-O-141763} Sending request failed to rsprim.ru : PUT matrix://rsprim.ru /_matrix/federation/v1/invite/%21CDLjHnVeLzQsCNLkwk%3Arsprim.ru/%24153932955184237GQzub%3Arsprim.ru: InvalidCodepoint("Codepoint U+0020 at positio    __n 3 of u'ru ' not allowed",)
    2018-10-12 17:32:35,435 - synapse.http.outbound - 246 - INFO - POST-442241- {PUT-O-141763} [rsprim.ru ] Result: InvalidCodepoint("Codepoint U+0020 at position 3 of u'ru ' not allowed",)
    2018-10-12 17:32:35,441 - synapse.util.async_helpers - 218 - INFO - POST-442241- Releasing linearizer lock 'member' for key ('!CDLjHnVeLzQsCNLkwk:rsprim.ru',)
    2018-10-12 17:32:35,442 - synapse.http.server - 101 - ERROR - POST-442241- Failed handle request via <function _async_render at 0x7ff7c04a2aa0>: <SynapseRequest at 0x7ff757581f38 method='POST' uri='/_matrix/client/r0/createRoom?access_token=<redacted>' clientproto='HTTP/1.0' site=8008>: Traceback (most recent call    __ last):
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 653, in _runCallbacks
        current.result = callback(current.result, *args, **kw)
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1442, in gotResult
        _inlineCallbacks(r, g, deferred)
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
    --- <exception caught here> ---
      File "/usr/lib/python2.7/dist-packages/synapse/http/server.py", line 81, in wrapped_request_handler
        yield h(self, request)
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/http/server.py", line 295, in _async_render
        callback_return = yield callback(request, **kwargs)
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/rest/client/v1/room.py", line 73, in on_POST
        requester, self.get_room_config(request)
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/handlers/room.py", line 270, in create_room
        content=content,
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/handlers/room_member.py", line 254, in update_membership
        content=content,
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/handlers/room_member.py", line 451, in _update_membership
        content=content,
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/handlers/room_member.py", line 201, in _local_membership_update
        ratelimit=ratelimit,
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/util/metrics.py", line 55, in measured_func
        r = yield func(self, *args, **kwargs)
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/handlers/message.py", line 658, in handle_new_client_event
        six.reraise(tp, value, tb)
      File "/usr/lib/python2.7/dist-packages/synapse/handlers/message.py", line 646, in handle_new_client_event
        extra_users=extra_users,
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/handlers/message.py", line 736, in persist_and_notify_client_event
        event,
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/handlers/federation.py", line 912, in send_invite
        pdu=event
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/federation/federation_client.py", line 705, in send_invite
        content=pdu.get_pdu_json(time_now),
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/federation/transport/client.py", line 295, in send_invite
        ignore_backoff=True,
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/http/matrixfederationclient.py", line 371, in put_json
        backoff_on_404=backoff_on_404,
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/http/matrixfederationclient.py", line 199, in _request
        request_deferred,
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
        result = result.throwExceptionIntoGenerator(g)
      File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 422, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/lib/python2.7/dist-packages/synapse/http/endpoint.py", line 154, in connect
        conn = yield self.endpoint_fac.connect(protocolFactory)
      File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1386, in _inlineCallbacks
        result = g.send(result)
      File "/usr/lib/python2.7/dist-packages/synapse/http/endpoint.py", line 334, in connect
        self.reactor, server.host, server.port, **self.endpoint_kw_args
      File "/usr/lib/python2.7/dist-packages/synapse/http/endpoint.py", line 131, in transport_endpoint
        tls_client_options_factory.get_options(host),
      File "/usr/lib/python2.7/dist-packages/synapse/crypto/context_factory.py", line 127, in get_options
        CertificateOptions(verify=False).getContext()
      File "/usr/lib/python2.7/dist-packages/synapse/crypto/context_factory.py", line 100, in __init__
        self._hostnameBytes = _idnaBytes(hostname)
      File "/usr/lib/python2.7/dist-packages/synapse/crypto/context_factory.py", line 67, in _idnaBytes
        return idna.encode(text)
      File "/usr/lib/python2.7/dist-packages/idna/core.py", line 355, in encode
        result.append(alabel(label))
      File "/usr/lib/python2.7/dist-packages/idna/core.py", line 276, in alabel
        check_label(label)
      File "/usr/lib/python2.7/dist-packages/idna/core.py", line 253, in check_label
        raise InvalidCodepoint('Codepoint {0} at position {1} of {2} not allowed'.format(_unot(cp_value), pos+1, repr(label)))
    idna.core.InvalidCodepoint: Codepoint U+0020 at position 3 of u'ru ' not allowed
    2018-10-12 17:32:35,457 - twisted - 131 - INFO - - (UDP Port 55924 Closed)
    2018-10-12 17:32:35,458 - twisted - 131 - INFO - - Stopping protocol <twisted.names.dns.DNSDatagramProtocol object at 0x7ff75b2c81d0>
    2018-10-12 17:32:35,459 - synapse.access.http.8008 - 284 - INFO - POST-442241- 127.0.0.1 - 8008 - {@disp_vl:rsprim.ru} Processed request: 5.220sec/0.003sec (0.087sec, 0.035sec) (0.023sec/0.136sec/65) 67B 500 "POST /_matrix/client/r0/createRoom?access_token=<redacted> HTTP/1.0" "python-requests/2.18.4" [7 dbevts]
    2018-10-12 17:32:35,460 - synapse.metrics - 268 - INFO - - Collecting gc 0
    2018-10-12 17:32:35,471 - synapse.access.http.8008 - 215 - INFO - POST-442251- 127.0.0.1 - 8008 - Received request: POST /_matrix/client/r0/createRoom?access_token=<redacted>
    2018-10-12 17:32:35,475 - synapse.util.async_helpers - 205 - INFO - POST-442251- Acquired uncontended linearizer lock 'room_event_creation_limit' for key '!ZFqRBghbOrDbTaWpso:rsprim.ru'
    2018-10-12 17:32:35,482 - synapse.util.async_helpers - 205 - INFO - POST-442251- Acquired uncontended linearizer lock 'rules_for_room' for key ()
    2018-10-12 17:32:35,482 - synapse.util.async_helpers - 218 - INFO - POST-442251- Releasing linearizer lock 'rules_for_room' for key ()

@progserega
Copy link
Author

I think this is such problem

@hawkowl
Copy link
Contributor

hawkowl commented Oct 12, 2018

@progserega You seem to have a space in your homeserver name? It's saying the " " in "ru " isn't allowed.

@progserega
Copy link
Author

Yes, free 30 Gb.

I investigate problem: web interface allow add to our bot mxid with spaces. When bot try create room for user and try invite this user to this room - server show such error.

Do I think properly, that it is not server error? And this bug may be close?

@richvdh
Copy link
Member

richvdh commented Oct 17, 2018

we should probably handle this more gracefully, in any case. It would be useful if you could tell us how to reproduce this: "web interface allow add to our bot mxid with spaces". Which web interface, exactly?

This has probably been improved by #3997, which will be in synapse 0.33.7. Certainly that will fix the local variable 'result' referenced before assignment error.

@neilisfragile neilisfragile added z-bug (Deprecated Label) z-p2 (Deprecated Label) labels Oct 19, 2018
@progserega
Copy link
Author

we should probably handle this more gracefully, in any case. It would be useful if you could tell us how to reproduce this: "web interface allow add to our bot mxid with spaces". Which web interface, exactly?

Our internal company web-interface, which symply get from user "mxid", which must be receive corporate automated messages:

  1. Admin open out web interface.
  2. Admin find needed users in user-list.
  3. Admin set for user his mxid.
  4. Our matrix-bot get this mxid and send to this mxid corporate messages.

Problem was in our web interface, which not strip spaces across entered mxid.

But I think that matrix-synapse must avoid this "bad mxid" in message from bot without any exceptions in logs... Or no?

@richvdh
Copy link
Member

richvdh commented Oct 25, 2018

The problem is that we need to know which APIs are being used which cause the problem. It looks from the above as though it is the createRoom API - is that correct?

@progserega
Copy link
Author

I use matrix_client python sdk 0.3.2

from matrix_client.client import MatrixClient
from matrix_client.api import MatrixRequestError
from matrix_client.api import MatrixHttpLibError
from requests.exceptions import MissingSchema


def create_room(db_con,matrix_uid):
  global log
  global client

  cur=db_con["cur"]
  con=db_con["con"]
  try:
    room=client.create_room(is_public=False, invitees=[matrix_uid])
    print("room_id=",room.room_id)
  except MatrixRequestError as e:
    print(e)
    if e.code == 400:
      log.error("Room ID/Alias in the wrong format")
      return False
    else:
      log.error("Couldn't find room.")
      return False

If matrix_uid have spaces in end of string - then server log have exception from current issue.

@richvdh
Copy link
Member

richvdh commented Oct 25, 2018

Ok thanks very much: I have opened #4088 to describe the problem more succinctly.

@richvdh richvdh closed this as completed Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
z-bug (Deprecated Label) z-p2 (Deprecated Label)
Projects
None yet
Development

No branches or pull requests

4 participants