weechat-matrix icon indicating copy to clipboard operation
weechat-matrix copied to clipboard

Fails to connect to homeserver

Open meatballs opened this issue 5 years ago • 3 comments

weechat-matrix won't connect to my homeserver. It does an SSL handshake and receives the certificate, but then shows:

matrix: Received header value surrounded by whitespace b"default-src https: data: 'unsafe-inline' 'unsafe-eval'  "

It works fine with matrix.org (and riot works fine with my homeserver).

Any ideas what might be wrong here?

meatballs avatar Jun 03 '20 11:06 meatballs

Seems like nio is more restrictive about HTTP headers, this sounds like the same issue as https://github.com/python-hyper/hyper-h2/issues/1206#issuecomment-565457998.

poljar avatar Jun 03 '20 11:06 poljar

Odd that my installation of synapse should behave differently to matrix.org but that looks like the cause.

meatballs avatar Jun 03 '20 11:06 meatballs

The docs link in that h2 issue is broken. Here's an alternative: https://hyper-h2.readthedocs.io/en/latest/api.html#h2.config.H2Configuration

(Thanks @alexwlchan)

meatballs avatar Jun 05 '20 07:06 meatballs