!JiiOHXrIUCtcOJsZCa:matrix.org

nio

342 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/133 Servers

Load older messages


SenderMessageTime
5 Sep 2024
@nex:nexy7574.co.uknex (she/it)Looking at the spec, it should be?19:23:46
@nex:nexy7574.co.uknex (she/it)what's missing?19:23:47
@timegrid:matrix.c3s.ccAlex

i don't see, that the access token is passed in download/thumbnail by the async_client. also there's the http client. and the tests will fail

19:26:13
@timegrid:matrix.c3s.ccAlexmight really be easier, if you could take a look at my solution19:26:39
@nex:nexy7574.co.uknex (she/it) HTTPClient is effectively deprecated, and afaik it should be passed down if they're running through mxctohttp 19:27:09
@nex:nexy7574.co.uknex (she/it)https://github.com/matrix-nio/matrix-nio/issues/511 and https://github.com/matrix-nio/matrix-nio/issues/40419:27:32
@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

Show newer messages


Back to Room ListRoom Version: 4