!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
13 Aug 2024
@nex:nexy7574.co.uknex (she/it)no worries. I'm keeping the github issue updated in line with the stuff here20:16:26
@me:shahpaarth.comPaarth Shah - Github Maintainer
In reply to @nex:nexy7574.co.uk
no worries. I'm keeping the github issue updated in line with the stuff here
Yep I saw, and I appreciate it! Was about to do it until I saw you beat me to it ๐Ÿ™‚
20:17:00
@nex:nexy7574.co.uknex (she/it) I'm good at being everywhere at once 20:18:05
14 Aug 2024
@kim:sosnowkadub.deHarHarLinks I was about to ask about this but then I duckduckgo'd ๐Ÿ‘€
https://github.com/matrix-nio/vodozemac-python
14:45:22
@tleydxdy:tlebear.win@tleydxdy:tlebear.win left the room.14:58:02
15 Aug 2024
@nex:nexy7574.co.uknex (she/it)moving nio into an src/ layout appears to be one hell of a refactor task ๐Ÿ˜Ÿ13:59:40
@nex:nexy7574.co.uknex (she/it)image.png
Download image.png
13:59:41
@me:shahpaarth.comPaarth Shah - Github Maintainer
In reply to @nex:nexy7574.co.uk
moving nio into an src/ layout appears to be one hell of a refactor task ๐Ÿ˜Ÿ
Imagine the dark days when people had to do it by hand lol
17:53:55
@nex:nexy7574.co.uknex (she/it)I am greatful for the ability to drag and drop ๐Ÿ™18:51:37
16 Aug 2024
@nex:nexy7574.co.uknex (she/it)Does anyone know how I can just make olm aware of a session13:57:22
@nex:nexy7574.co.uknex (she/it) I've spun up a new bot account, and any message in an encrypted room is just spat out as
2024-08-16 13:56:37 - nio.crypto.log - WARNING - Received a undecryptable Megolm event from a unknown device: @nex:transgender.ing GCxVJViVBV
2024-08-16 13:56:37 - nio.crypto.log - WARNING - Error decrypting megolm event, no session found with session id SbfkMGqfXCdJpt9xJSRX49Y8HzRpbessh+GzMDWS/Bs for room <...>
13:57:53
@tulir:maunium.nettulir
In reply to @nex:nexy7574.co.uk
Does anyone know how I can just make olm aware of a session
the question is probably wrong
14:01:59
@tulir:maunium.nettulirif you mean you want old messages, then it requires using key exports or key backup (not sure if either is supported in nio)14:04:37
@tulir:maunium.nettulirif new messages don't work, it requires troubleshooting which part failed exactly14:04:50
@nex:nexy7574.co.uknex (she/it)I'll take a look at debug logs14:29:28
@nex:nexy7574.co.uknex (she/it)
In reply to@tulir:maunium.net
if you mean you want old messages, then it requires using key exports or key backup (not sure if either is supported in nio)
Also, key imports are supported, but server-side backups are not
14:36:34
18 Aug 2024
@matthew:matrix.orgMatthew changed their display name from Matthew to Matthew (away).10:31:40
@tom:lant.uktom changed their display name from tom [away ยท back 2024-08-19] to tom.17:12:56
@nex:nexy7574.co.uknex (she/it) removed their profile picture.20:58:57
@nex:nexy7574.co.uknex (she/it) set a profile picture.21:02:21
@sfink:mozilla.orgsfink changed their display name from sfink|covid to sfink.23:48:41
19 Aug 2024
@nex:nexy7574.co.uknex (she/it) changed their profile picture.16:20:25
@nex:nexy7574.co.uknex (she/it)
In reply to @nex:nexy7574.co.uk
I'll take a look at debug logs
2024-08-19 17:25:20 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:20 - nio.crypto.log - WARNING - Received a undecryptable Megolm event from a device with no Olm sessions: @nex:nexy7574.co.uk nozE9zP8Gq
2024-08-19 17:25:20 - nio.crypto.log - WARNING - Error decrypting megolm event, no session found with session id hwzpAa1kwyl7/HLLXwuYC7NY9z/jE6GB2xRzcmdhfLo for room !9LJaUI10P7j9PPMu:nexy7574.co.uk
2024-08-19 17:25:20 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:20 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:29 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:29 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:31 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:31 - nio.crypto.log - WARNING - Received a undecryptable Megolm event from a device with no Olm sessions: @nex:nexy7574.co.uk nozE9zP8Gq
2024-08-19 17:25:31 - nio.crypto.log - WARNING - Error decrypting megolm event, no session found with session id hwzpAa1kwyl7/HLLXwuYC7NY9z/jE6GB2xRzcmdhfLo for room !9LJaUI10P7j9PPMu:nexy7574.co.uk
2024-08-19 17:25:31 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:31 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:31 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:31 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:31 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:31 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:31 - nio.crypto.log - WARNING - Received a undecryptable Megolm event from a device with no Olm sessions: @nex:nexy7574.co.uk nozE9zP8Gq
2024-08-19 17:25:31 - nio.crypto.log - WARNING - Error decrypting megolm event, no session found with session id hwzpAa1kwyl7/HLLXwuYC7NY9z/jE6GB2xRzcmdhfLo for room !9LJaUI10P7j9PPMu:nexy7574.co.uk
2024-08-19 17:25:31 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:31 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:32 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:32 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:32 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:33 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:33 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:33 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:33 - nio.crypto.log - WARNING - Received a undecryptable Megolm event from a device with no Olm sessions: @nex:nexy7574.co.uk nozE9zP8Gq
2024-08-19 17:25:33 - nio.crypto.log - WARNING - Error decrypting megolm event, no session found with session id hwzpAa1kwyl7/HLLXwuYC7NY9z/jE6GB2xRzcmdhfLo for room !9LJaUI10P7j9PPMu:nexy7574.co.uk
2024-08-19 17:25:33 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:33 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:33 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:34 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:34 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:34 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:34 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:35 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:35 - nio.crypto.log - WARNING - Received a undecryptable Megolm event from a device with no Olm sessions: @nex:nexy7574.co.uk nozE9zP8Gq
2024-08-19 17:25:35 - nio.crypto.log - WARNING - Error decrypting megolm event, no session found with session id hwzpAa1kwyl7/HLLXwuYC7NY9z/jE6GB2xRzcmdhfLo for room !9LJaUI10P7j9PPMu:nexy7574.co.uk
2024-08-19 17:25:35 - nio.responses - WARNING - Error validating response: 'device_keys' is a required property
2024-08-19 17:25:35 - nio.responses - WARNING - Error validating response: 'device_keys' is a required propert

These are the debug logs

17:26:18
@nex:nexy7574.co.uknex (she/it)I'm not sure how to debug this17:32:35
@anton.molyboha:matrix.organton.molyboha

The "Error validating response" usually appears when response from the server does not match the schema described in schemas.py [1]. Looks like your bot sent a request to keys/query [2], got a response that did not include device_keys key, and because it did not fit the schema, nio has thrown away the whole response. Could it be that processing that response was necessary for things to work, even though device_keys were absent?

[1] https://github.com/matrix-nio/matrix-nio/blob/main/nio/schemas.py#L1374
[2] https://spec.matrix.org/v1.11/client-server-api/#post_matrixclientv3keysquery

18:55:41
@anton.molyboha:matrix.organton.molyboha It looks like KeysQueryResponse is normally handled over here:
https://github.com/matrix-nio/matrix-nio/blob/main/nio/client/base_client.py#L1019
but I don't understand where response.changed is getting its value from, it does not seem to be a part of the json returned by the server, if I am reading the correct part of the spec.
19:00:37
@nex:nexy7574.co.uknex (she/it)I love "error validating response (warning)" and then not seeing the failed validation19:26:17
21 Aug 2024
@alex:a09.uk@alex:a09.uk left the room.21:00:12
24 Aug 2024
@me:shahpaarth.comPaarth Shah - Github Maintainer nex (she/it): https://github.com/matrix-nio/matrix-nio/pull/516 is merged ๐Ÿ™‚ 22:05:12
@me:shahpaarth.comPaarth Shah - Github Maintainer You can see some of the other touchups I did besides just letting the linting autofix things, but to answer some of your TODOs: installing .[dev] does indeed automatically include all of the [e2e] implicitly, and .[docs] includes .[dev], so transitively gets .[dev,e2e] for free without explicitly specifying it 22:07:46

Show newer messages


Back to Room ListRoom Version: 4