Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Synapse error logged on opening client (room list handler) #7262

Closed
V02460 opened this issue Apr 11, 2020 · 1 comment
Closed

Synapse error logged on opening client (room list handler) #7262

V02460 opened this issue Apr 11, 2020 · 1 comment

Comments

@V02460
Copy link
Contributor

V02460 commented Apr 11, 2020

Whenever I open up a client, this error is emitted to Synapse’s logs:

AttributeError: 'NoneType' object has no attribute 'content'

The code line at fault is in the room list handler. It seems to assume there is always a create event returned from the database, which in my case appears to fail:

create_event = current_state.get((EventTypes.Create, ""))
result["m.federate"] = create_event.content.get("m.federate", True)

I am running Synapse v1.12.3.

@clokep
Copy link
Member

clokep commented Apr 13, 2020

I think this is a duplicate of #4891, but it is hard to tell without the full stack trace. It seems to point to the same line of code though so I'm going to close this as a duplicate. Please reopen it if this seems to be a different issue.

@clokep clokep closed this as completed Apr 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants