!JiiOHXrIUCtcOJsZCa:matrix.org

nio

357 Members
The nio matrix python library | Latest release 0.4 https://pypi.org/project/matrix-nio/ | Documentation: https://matrix-nio.readthedocs.io/en/stable/140 Servers

Load older messages


SenderMessageTime
7 Sep 2024
@timegrid:matrix.c3s.ccAlexvia the new api i mean17:41:26
@nex:nexy7574.co.uknex (she/it)
In reply to@tulir:maunium.net
are there any benefits to the sans-io architecture or does it just make everything harder? :P
From what I understand, its mostly just an old thing, as AsyncClient is the only one that's been updated in years (see https://github.com/matrix-nio/matrix-nio/pull/404)
17:59:50
@nex:nexy7574.co.uknex (she/it)It'd be a rather pointless task to change it though, if it ain't broke don't fix it18:00:11
@nex:nexy7574.co.uknex (she/it)
In reply to@timegrid:matrix.c3s.cc

i don't know enough about what happens under the hood to resolve this confusion, probably it does not matter anyway, but i'm refering to those messages:

GET: /_matrix/client/v1/media/thumbnail/<OTHERSERVER>/<ID>?width=14&height=14&method=scale&allow_remote=true
~ 18:28:33 | Error retrieving mxc://<OTHERSERVER>/<ID> (user_<USERID>): MatrixError 404,,invalid content type: application/json,{"errcode":"M_UNRECOGNIZED","error":"Unrecognized request"}

i assume, that using the new api, the server also tries to request the thumbnail from the other server and fails

I can't see why that'd 404
18:01:32
@nex:nexy7574.co.uknex (she/it) This is the S2S API version 18:02:11
@nex:nexy7574.co.uknex (she/it)which is a completely different endpoint18:02:17
@nex:nexy7574.co.uknex (she/it)I don't think the server-server api should matter though given nio is a client18:02:58
@timegrid:matrix.c3s.ccAlex

ah - my current account is on a server, which probably doesn't speak the new api as well

18:04:40
@nex:nexy7574.co.uknex (she/it)Yeah, your server only supports up to v1.1018:05:21
@nex:nexy7574.co.uknex (she/it)v1.11 is the minimum for authenticated media18:05:30
@nex:nexy7574.co.uknex (she/it)\!admin debug ping matrix.c3s.cc18:06:00
@nex:nexy7574.co.uknex (she/it)

Got response which took 110.191251ms time:

{
  "name": "Synapse",
  "version": "1.108.0"
}
18:06:00
@nex:nexy7574.co.uknex (she/it)yikes, that's ancient in synapse time18:06:10
@nex:nexy7574.co.uknex (she/it)1.118 is out :^)18:06:18
@timegrid:matrix.c3s.ccAlex

yes, i'm on it, already talked to the admin today :P ok, then there are no errors with that patch yet (i also tested images with two matrix.org accounts capable of authenticated media) and this probably might be the best option to fix both issues at the same time. are you sure, paarth won't merge it after his review now?

18:14:33
@nex:nexy7574.co.uknex (she/it)The review was two hours ago, so if it was going to be merged it would've been by now. I've marked it as a draft until I've given it a proper once-over just to make sure there's no confusion18:16:23
@nex:nexy7574.co.uknex (she/it) just waiting until I get home so I can get an IDE 18:16:53
@nex:nexy7574.co.uknex (she/it)which will be any minute now18:17:05
@nex:nexy7574.co.uknex (she/it)* The review was two hours ago, so if it was going to be merged on a whim it would've been by now. I've marked it as a draft until I've given it a proper once-over just to make sure there's no confusion18:18:10
@nex:nexy7574.co.uknex (she/it)Ouch18:32:20
@nex:nexy7574.co.uknex (she/it)image.png
Download image.png
18:32:21
@nex:nexy7574.co.uknex (she/it)looks like the tests are expecting the access_token query string18:40:04
@nex:nexy7574.co.uknex (she/it)image.png
Download image.png
18:40:04
@nex:nexy7574.co.uknex (she/it)that's gonna be a pain to fix18:40:12
@timegrid:matrix.c3s.ccAlex

sorry, can't see the image :P just read the github comments. i meant the url adjustment more like a temporary test and thought, that api.py was going to be adjusted (all access_tokens removed)

18:41:16
@nex:nexy7574.co.uknex (she/it)
sorry, can't see the image
This quote is starting to become more popular than the "unable to decrypt" meme
18:43:37
@timegrid:matrix.c3s.ccAlex^^18:43:45
@nex:nexy7574.co.uknex (she/it) Also yes, hopefully the access tokens will be removed entirely soon:tm:, but for now I just want to get something that works 18:44:36
@timegrid:matrix.c3s.ccAlex

the newest commit also works for me, tested image sharing with a matrix.org account in both encrypted and unencrypted rooms

19:15:02
@nex:nexy7574.co.uknex (she/it)Yeah, it was just your patch plus the removal of the prior warning I put in19:20:52

Show newer messages


Back to Room ListRoom Version: 4