Skip to content

Missing access token #4

@TagBlanc

Description

@TagBlanc

I know that this repository in no longer updated, but since this is the only matrix markov chain bot that I found on the internet I hope I'll get reply

After entering user and password in config.cfg and running main.py I'm getting this:

2025-02-09 19:15:17,090 root INFO loading brain
Traceback (most recent call last):
  File "/home/blanc/homemnt/sglypa/matrix-chatbot/main.py", line 443, in main
    bot.run()
    ~~~~~~~^^
  File "/home/blanc/homemnt/sglypa/matrix-chatbot/main.py", line 322, in run
    self.set_display_name(self.config.display_name)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/blanc/homemnt/sglypa/matrix-chatbot/main.py", line 312, in set_display_name
    self.client.api.set_display_name(self.client.user_id, display_name)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/blanc/homemnt/sglypa/matrix-chatbot/my-venv/lib/python3.13/site-packages/matrix_client/api.py", line 775, in set_display_name
    return self._send("PUT", "/profile/%s/displayname" % user_id, content)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/blanc/homemnt/sglypa/matrix-chatbot/my-venv/lib/python3.13/site-packages/matrix_client/api.py", line 748, in _send
    raise MatrixRequestError(
        code=response.status_code, content=response.text
    )
matrix_client.errors.MatrixRequestError: 401: {"errcode":"M_MISSING_TOKEN","error":"Missing access token"}
2025-02-09 19:15:18,588 root WARNING disconnected. Waiting a minute to see if the problem resolves itself...

What can I do to make bot work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions