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

Cannot invite external user using 3pid #4919

Closed
Peter2121 opened this issue Mar 22, 2019 · 1 comment
Closed

Cannot invite external user using 3pid #4919

Peter2121 opened this issue Mar 22, 2019 · 1 comment

Comments

@Peter2121
Copy link

Peter2121 commented Mar 22, 2019

Description

When I try to invite an external user to a room on my server - I get an error.

Steps to reproduce

  • Install my own home server
  • Configure my own ID server (mxisd)
  • Configure and test federation
  • Invite au user from matrix.org using his e-mail addresse (NOT in matrix.org SMTP domain)

Version information

Synapse 0.34.1.1
Installed on FreeBSD from package (official repository).

Riot 1.0.1
Mxisd 1.3.1

Domain bimp.fr
Server chat.bimp.fr

I get the following stacktrace on synapse:

-- <exception caught here> ---
  File "/usr/local/lib/python2.7/site-packages/synapse/http/server.py", line 81, in wrapped_request_handler
    yield h(self, request)
  File "/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/local/lib/python2.7/site-packages/synapse/http/server.py", line 316, in _async_render
    callback_return = yield callback(request, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/local/lib/python2.7/site-packages/synapse/rest/client/v1/room.py", line 669, in on_POST
    txn_id
  File "/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/local/lib/python2.7/site-packages/synapse/handlers/room_member.py", line 643, in do_3pid_invite
    txn_id=txn_id
  File "/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/local/lib/python2.7/site-packages/synapse/handlers/room_member.py", line 754, in _make_and_store_3pid_invite
    inviter_avatar_url=inviter_avatar_url
  File "/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/local/lib/python2.7/site-packages/synapse/handlers/room_member.py", line 854, in _ask_id_server_for_third_party_invite
    invite_config
  File "/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1386, in _inlineCallbacks
    result = g.send(result)
  File "/usr/local/lib/python2.7/site-packages/synapse/http/client.py", line 340, in post_urlencoded_get_json
    raise HttpResponseException(response.code, response.phrase, body)
exceptions.UnboundLocalError: local variable 'body' referenced before assignment

@richvdh
Copy link
Member

richvdh commented Mar 23, 2019

fixed by #4460. Please check the latest release before reporting bugs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants