!JiiOHXrIUCtcOJsZCa:matrix.org

nio

341 Members
The nio matrix python library | Latest stable release 0.25.2 | https://pypi.org/project/matrix-nio/ | Documentation: https://matrix-nio.readthedocs.io/en/stable/132 Servers

Load older messages


SenderMessageTime
5 Sep 2024
@timegrid:matrix.c3s.ccAlexstill the test for http client will fail, if you adjust the download/thumbnail function19:27:35
@nex:nexy7574.co.uknex (she/it)* https://github.com/matrix-nio/matrix-nio/issues/511 and https://github.com/matrix-nio/matrix-nio/issues/404 may be relevant19:27:37
@nex:nexy7574.co.uknex (she/it)There are no tests for http client, and they're all passing with the latest commit19:27:58
@timegrid:matrix.c3s.ccAlex
In reply to @nex:nexy7574.co.uk
HTTPClient is effectively deprecated, and afaik it should be passed down if they're running through mxctohttp

that might be, i did not fully understand the context of that function

19:28:15
@nex:nexy7574.co.uknex (she/it)Oh hang on19:28:15
@timegrid:matrix.c3s.ccAlex

i'll try your solution with my moment test case

19:29:18
@nex:nexy7574.co.uknex (she/it) The API class doesn't call mxctohttp 19:28:23
@nex:nexy7574.co.uknex (she/it)how whack19:28:26
@nex:nexy7574.co.uknex (she/it)I wonder why19:29:07
@nex:nexy7574.co.uknex (she/it)I just patched HTTPClient too, pending tests19:32:42
@nex:nexy7574.co.uknex (she/it) I'm trying to find my demo client to test this with but I cannot find the gist for the life of me 19:33:01
@timegrid:matrix.c3s.ccAlex

your code unfortunately does not work, i get 401s: MatrixError 401,M_MISSING_TOKEN,Missing access token,{"errcode":"M_MISSING_TOKEN","error":"Missing access token"}

19:34:57
@timegrid:matrix.c3s.ccAlexwhich is at least a different error as the former 404s yesterday19:36:12
@nex:nexy7574.co.uknex (she/it)Updating the tests now19:40:06
@nex:nexy7574.co.uknex (she/it)Screenshot_20240905_203954.webp
Download Screenshot_20240905_203954.webp
19:40:07
@nex:nexy7574.co.uknex (she/it)fingers crossed19:40:09
@nex:nexy7574.co.uknex (she/it)COME ON19:40:25
@nex:nexy7574.co.uknex (she/it)Screenshot_20240905_204019.webp
Download Screenshot_20240905_204019.webp
19:40:25
@nex:nexy7574.co.uknex (she/it)I missed ONE19:40:26
@timegrid:matrix.c3s.ccAlex

this is, what worked for me: https://github.com/timegrid/matrix-nio/commit/255a5f561fc97f209ba54859d85d8327ebdd0e6c

19:42:49
@timegrid:matrix.c3s.ccAlexjust tell me, when i should test your PR again19:43:30
@nex:nexy7574.co.uknex (she/it)will do :) and thanks, I shall compare19:44:31
@timegrid:matrix.c3s.ccAlex

i also added another test for authenticated mxc_to_http, which probably makes sense

19:48:57
@nex:nexy7574.co.uknex (she/it) Alright @Alex , CI is passing, feel free to give it another test 19:51:56
@timegrid:matrix.c3s.ccAlexk19:52:05
@nex:nexy7574.co.uknex (she/it)wrong alex 🙏19:52:06
@timegrid:matrix.c3s.ccAlex

because the http urls won't make sense anymore, as soon as token auth in query strings are removed?

19:54:20
@timegrid:matrix.c3s.ccAlex

looks like it's working

19:55:35
@nex:nexy7574.co.uknex (she/it)
In reply to@timegrid:matrix.c3s.cc

because the http urls won't make sense anymore, as soon as token auth in query strings are removed?

https://github.com/matrix-nio/matrix-nio/issues/404 is being used to track the replacement of the query string auth tokens. Its gonna be a pretty big change, which is out of scope for this
19:56:01
@timegrid:matrix.c3s.ccAlexyup, thought so. do you know, when this will happen? i mean the removal in the specs and the implementation in the servers19:57:07

Show newer messages


Back to Room ListRoom Version: 4