Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Welcome Server module error #155

Open
Rambonit opened this issue May 16, 2021 · 3 comments
Open

Welcome Server module error #155

Rambonit opened this issue May 16, 2021 · 3 comments

Comments

@Rambonit
Copy link

Hi getting this error when enabled the welcome server module. (running in docker)

Traceback (most recent call last):
File "./bot.py", line 467, in poll_timer
await moduleobject.matrix_poll(self, self.pollcount)
File "/bot/modules/welcome_server.py", line 54, in matrix_poll
server_user_delta = self.get_server_user_delta(bot)
File "/bot/modules/welcome_server.py", line 115, in get_server_user_delta
user_list = self.get_server_user_list()
File "/bot/modules/welcome_server.py", line 127, in get_server_user_list
self.welcome_settings["user_query_host"] + "/_synapse/admin/v2/users",
KeyError: 'user_query_host'

I tried replacing the variable by the url and got another error:

Traceback (most recent call last):
File "./bot.py", line 467, in poll_timer
await moduleobject.matrix_poll(self, self.pollcount)
File "/bot/modules/welcome_server.py", line 64, in matrix_poll
server_user_delta = self.get_server_user_delta(bot)
File "/bot/modules/welcome_server.py", line 128, in get_server_user_delta
self.welcome_settings["last_server_users"]
KeyError: 'last_server_users'

@xPMo
Copy link
Collaborator

xPMo commented May 16, 2021

The lookup will fail until you !welcome_server welcome_message Your welcome message here.

@VardanAggarwal
Copy link

The lookup will fail until you !welcome_server welcome_message Your welcome message here.

But the lookup is failing in above command only.

@xPMo
Copy link
Collaborator

xPMo commented Aug 30, 2021

But the lookup is failing in above command only.

It doesn't fail when running !welcome_server at all, just when matrix_poll detects new users when no message has been configured. This could be fixed if hemppa adds a basic template message when no message is returned from account data.

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

No branches or pull requests

3 participants