-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matrix throwing KeyError: 'presence' Python errors #52959
Comments
matrix documentation |
Regarding Matrix, this seems to be an issue in the upstream library. See matrix-org/matrix-python-sdk#320. |
Bug is present on my instance as well. |
Same bug, nothing has changed with my Matrix config in HomeAssistant, I didn't notice any breaking changes around this component but this didn't happen after a Home Assistant update either. Currently running Core 2021.7.3, I've restored back to 2021.6.1 and the Matrix component will not start on any version. Same error different keyerror in my logs 'invite'. |
Given that https://github.com/matrix-org/matrix-python-sdk looks to be abandonware at this point, the integration should probably be rewritten to use https://github.com/poljar/matrix-nio. This is an actively updated library where issues like this would likely be solved with a version bump and would also allow such niceties as end-to-end encryption. |
This was probably caused by the smaller sync responses introduced in synapse 1.38 |
Thanks for that pull, and the issue started after a Synapse update, so it makes sense. *edit - My issue was a version difference with what was on github, thanks for that PR. |
I'm getting the same but with 'Invite' as the key, assuming this is the same issue. |
If you are using the docker image, yes. https://docs.docker.com/engine/reference/commandline/exec/
should do the trick The file is in /usr/local/lib/python3.9/site-packages/matrix_client, I think. |
matrix-org/matrix-python-sdk#321 has been merged, not sure who need to update the integration 🤔 |
@surakin first we need a release of it |
I have opened up a PR with the version bump, see #53508 |
The problem
After the recent update I have had signs python errors pop up. I have not added to or changed my configuration. This just started the past week so I think it was the 2021.07.1 update. I tried updating to 2021.7.2 hoping there was a fix. Both integrations matrix,rainbird were working before the update but now cause errors.
What is version of Home Assistant Core has the issue?
2021.7.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Rainbird, matrix
Link to integration documentation on our website
https://www.home-assistant.io/integrations/matrix
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: