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

facebookbot user creation error : Whoami endpoint returned M_FORBIDDEN #82

Closed
jaalmoes opened this issue Jul 15, 2020 · 4 comments
Closed

Comments

@jaalmoes
Copy link

jaalmoes commented Jul 15, 2020

Hi,
I have followed the wiki but when running python -m mautrixe_facebook I ran into this issue:

It seems like the programme can't register the facebookbot user but I don't know why. I can register users manually using the command :
register_new_matrix_user -c homeserver.yaml http://localhost:8008

I don't know if this is a configuration issue or not, I am sorry if it is.

Thank you

(messenger) ircd@shirocookie:~/messenger/lib/python3.8/site-packages/mautrix_facebook$ python -m mautrix_facebook
[2020-07-15 17:36:16,956] [INFO@mau.init] Initializing mautrix-facebook 0.1.0rc3
[2020-07-15 17:36:16,975] [INFO@mau.init] Initialization complete in 0.12 seconds
[2020-07-15 17:36:16,976] [DEBUG@mau.init] Running startup actions...
[2020-07-15 17:36:16,976] [DEBUG@mau.init] Starting appservice...
[2020-07-15 17:36:16,976] [DEBUG@mau.as] Starting appservice web server on 0.0.0.0:29319
[2020-07-15 17:36:16,978] [INFO@mau.mx] Ensuring connectivity to homeserver
[2020-07-15 17:36:17,640] [DEBUG@mau.mx] Whoami endpoint returned M_FORBIDDEN, trying to register bridge bot before retrying...
[2020-07-15 17:36:17,648] [CRITICAL@mau.init] Unexpected error in main event loop
Traceback (most recent call last):
File "/home/ircd/messenger/lib/python3.8/site-packages/mautrix/bridge/matrix.py", line 75, in wait_for_connection
await self.az.intent.whoami()
File "/home/ircd/messenger/lib/python3.8/site-packages/mautrix/client/api/authentication.py", line 32, in whoami
resp = await self.api.request(Method.GET, Path.account.whoami)
File "/home/ircd/messenger/lib/python3.8/site-packages/mautrix/api/http.py", line 203, in request
return await self._send(method, endpoint, content, query_params, headers or {})
File "/home/ircd/messenger/lib/python3.8/site-packages/mautrix/api/http.py", line 143, in _send
raise make_request_error(http_status=response.status,
mautrix.errors.request.MForbidden: Application service has not registered this user

@bertkdowns
Copy link

I just had this issue. I think the problem is that the matrix identity servers are saying the bridge bot doesn't exist (probably because they're looking in the wrong place), when it does. The script then tries to create the bot but it doesn't work because it is already created.
So for me, since my server is running on port 8448, I had to change the config.yaml from:
homeserver: # The address that this appservice can use to connect to the homeserver. address: https://example.com:8448 # The domain of the homeserver (for MXIDs, etc). domain: example.com

to

homeserver: # The address that this appservice can use to connect to the homeserver. address: https://example.com:8448 # The domain of the homeserver (for MXIDs, etc). domain: example.com:8448 <------ THIS BIT CHANGED
TL:DR play around with the homeserver values

@tulir
Copy link
Member

tulir commented Jan 19, 2021

Debugging setup problems should be done in the Matrix room (#facebook:maunium.net)

@tulir tulir closed this as completed Jan 19, 2021
@kamilr
Copy link

kamilr commented Oct 13, 2021

@jaalmoes did You found Your solution? I still have the same issue for the latest versions.

EDIT:
Thanks to Tulir. homerserver->domain was wrong. Should be same as server_name for Synapse server.

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

No branches or pull requests

5 participants