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

Not working with my own matrix server. #8

Open
sniffski opened this issue Apr 14, 2022 · 2 comments
Open

Not working with my own matrix server. #8

sniffski opened this issue Apr 14, 2022 · 2 comments

Comments

@sniffski
Copy link

It seem the bot doesn't work with self hosted matrix server... :(

@paulormart
Copy link
Contributor

Hi, I haven’t tried this myself. Do you have any logs of the errors?

@sniffski
Copy link
Author

sniffski commented Apr 15, 2022

Yup:

[2022-04-15T09:51:03Z DEBUG crunch::matrix] response Response { url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("matrix.org")), port: None, path: "/_matrix/client/r0/login", query: None, fragment: None }, status: 403, headers: {"date": "Fri, 15 Apr 2022 09:51:03 GMT", "content-type": "application/json", "transfer-encoding": "chunked", "connection": "keep-alive", "synapse-trace-id": "a583afd31132411b", "cache-control": "no-cache,
no-store, must-revalidate", "access-control-allow-origin": "*", "access-control-a
llow-methods": "GET, HEAD, POST, PUT, DELETE, OPTIONS", "access-control-allow-headers": "X-Requested-With, Content-Type, Authorization, Date", "permissions-policy
": "interest-cohort=()", "cf-cache-status": "DYNAMIC", "expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", "server": "cloudflare", "cf-ray": "6fc3c7cc5c7c9bfe-FRA"} }
[2022-04-15T09:51:03Z ERROR crunch::crunch] Invalid password

Also there is no variable to set custom matrix server instead of matrix.org...
Bear in mind the username and password are set in .env file, but the debug log displays empty values, not sure if that's for security reasons or it fails to properly get the variables from file... If I put CRUNCH_MATRIX_BOT_USER=@valid-matrix-user:matrix.org all works fine...

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

1 participant