Closed tulkki closed 5 years ago
If I reload matrix script sometimes I have this output too: /script reload matrix
Call to API errored in command url:https://matrix.org/_matrix/client/r0/login, maybe timeout?
Same story here.
│ matrix: Connecting to homeserver URL: https://matrix.org/
│ lua scripts loaded: matrix
=!= │ Invalid http request: HTTP/2 200
│ date: Wed, 14 Nov 2018 04:50:09 GMT
│ content-type: application/json
│ set-cookie: __cfduid=de78706c564f1db36ab648a5b40f257471542171007; expires=Thu, 14-Nov-19 04:50:07 GMT; path=/; domain=.matrix.org; HttpOnly
│ cache-control: no-cache, no-store, must-revalidate
│ access-control-allow-origin: *
│ access-control-allow-methods: GET, POST, PUT, DELETE, OPTIONS
│ access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
│ expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
│ server: cloudflare
│ cf-ray: 4796dafcfbfc65db-SYD
After some experimentation I've found the offending line.
I changed line 474 of matrix.lua from:
local httpversion, status_code, reason_phrase = line:match("^HTTP/(1%.[01]) (%d%d%d) (.-)\r?\n")
to:
local httpversion, status_code, reason_phrase = line:match("^HTTP/([012]) (%d%d%d) (.-)\r?\n")
This seemingly resolved the issue for me but I'm unsure if this is the correct way to go about this sort of thing.
WeeChat 2.3 (C) 2003-2018
I had weechat-matrix-protocol-script running but for some reason after a reboot I can't login to matrix.org.
How can I fix this ?
I read #113, #39 issues but I don't have a password error .