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

server url not normalized #8

Open
ghciv6 opened this issue Aug 12, 2020 · 2 comments
Open

server url not normalized #8

ghciv6 opened this issue Aug 12, 2020 · 2 comments

Comments

@ghciv6
Copy link

ghciv6 commented Aug 12, 2020

i've added a trailing slash to the server url in config.py

$ grep server .config/matrixcli/config.py 
accounts=[{ "server":"https://chat.privacytools.io/",

any operation then fails with:

matrix_client.errors.MatrixRequestError: 404: 
<html>
  <head><title>404 - No Such Resource</title></head>
  <body>
    <h1>No Such Resource</h1>
    <p>No such child resource.</p>
  </body>
</html>

Please handle the trailing slash properly or reject the url with an useful error message.

@ghciv6
Copy link
Author

ghciv6 commented Aug 12, 2020

with:

$ grep server .config/matrixcli/config.py 
accounts=[{ "server":"https://chat.privacytools.io",

it works as expected.

@rasmus-kirk
Copy link

Could the sample config please be changed until this is fixed? It doesn't work because of the slash at the end of the matrix url.

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