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

Connecting local mattermost server to errbot #1632

Open
devinpapalangi opened this issue Mar 6, 2023 · 2 comments
Open

Connecting local mattermost server to errbot #1632

devinpapalangi opened this issue Mar 6, 2023 · 2 comments

Comments

@devinpapalangi
Copy link

Hey guys, so I have succesfully created a mattermost bot server in my private online server.

But now, I want to move the bot to my local office server but it keep sending me an error saying that

mattermostdriver.exceptions.ResourceNotFound: Sorry, we could not find the page.

Can anyone help and tell me how to connect errbot to a local mattermost server? Thankyou

Here is my bot identity
image

and this is my full console about the error
12:41:50 ERROR mattermostdriver.websocke Sorry, we could not find the page.
12:41:50 ERROR errbot.backends.base Exception occurred in serve_once:
Traceback (most recent call last):
File "d:\AG\bot-mattermost.venv\Lib\site-packages\errbot\backends\base.py", line 868, in serve_forever
if self.serve_once():
^^^^^^^^^^^^^^^^^
File "D:\AG\bot-mattermost\errbot-mattermost-backend..\errbot-mattermost-backend\src\err-backend-mattermost\err-backend-mattermost.py", line 347, in serve_once
self.teamid = self.driver.teams.get_team_by_name(name=self.team)["id"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\AG\bot-mattermost.venv\Lib\site-packages\mattermostdriver\endpoints\teams.py", line 46, in get_team_by_name
return self.client.get(
^^^^^^^^^^^^^^^^
File "d:\AG\bot-mattermost.venv\Lib\site-packages\mattermostdriver\client.py", line 193, in get
response = self.make_request('get', endpoint, options=options, params=params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\AG\bot-mattermost.venv\Lib\site-packages\mattermostdriver\client.py", line 179, in make_request
raise ResourceNotFound(message) from None
mattermostdriver.exceptions.ResourceNotFound: Sorry, we could not find the page.
12:41:50 INFO errbot.backends.base Reconnecting in 601 seconds (13 attempted reconnections so far).

@keenborder786
Copy link
Contributor

Hey I am looking into this issue.

@keenborder786
Copy link
Contributor

keenborder786 commented Jun 8, 2023

Can you please make sure their is no firewall which is blocking the connection?

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

2 participants