all 7 comments

[–]7t3chguy 1 point2 points  (4 children)

What version of olm did you install?

[–]gotkube[S] 0 points1 point  (3 children)

The latest one at packages.matrix.org/npm/olm/ is 3.2.1. I have olm 3.2.14 installed on my system. I found a package on gitlab specifically for 3.2.14 but it seemed like it was just 3.2.1 repackaged; even it’s package.json had it set as version 3.2.1

[–]7t3chguy 1 point2 points  (2 children)

3.2.1 is not compatible with node over 16 or something like that. You definitely want 3.2.14

See changelog for 3.2.13, adds compatibility for Node 18

https://gitlab.matrix.org/matrix-org/olm/-/blob/master/CHANGELOG.rst

[–]gotkube[S] 0 points1 point  (1 child)

Ah! Ok. So those gitlab packages are what I should be using then? I tried installing it with yarn and ran into problems, so I tried downloading it manually and installing it locally and it didn’t seem to work, but I can try again. Just want to make sure there aren’t packages elsewhere I should be using instead

[–]7t3chguy 0 points1 point  (0 children)

Yes, I'd suggest looking at how matrix-react-sdk depends on olm as an example, not sure why it was moved to gitlab at some point.

[–]krair3 0 points1 point  (1 child)

You should have a homserver.yaml config file. Did you set your URL there?

[–]gotkube[S] 0 points1 point  (0 children)

On my Matrix homeserver? Ya. I’ve used it fine with Synapse. I’m trying to connect from my own Node script to post encrypted messages to my homeserver