Skip to content

Connecting local mattermost server to errbot #1632

Open

Description

@devinpapalangi

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).

Activity

  1. keenborder786 commented on Jun 8, 2023

    @keenborder786
    Contributor

    Hey I am looking into this issue.

  2. keenborder786 commented on Jun 8, 2023

    @keenborder786
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions