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

AttributeError: 'dict' object has no attribute 'edu_type' #11924

@frlan

Description

@frlan

Description

I think it's related to federation between two 1.51.0 servers:

I'm getting

synapse.federation.transport.server.federation: [PUT-35751] 'dict' object has no attribute 'edu_type'
Traceback (most recent call last):
File "/nix/store/xld8k8dik34zamx3f66biz13gqbz8ccw-python3-3.9.6-env/lib/python3.9/site-packages/twisted/internet/defer.py", line 1661, in _inlineCallbacks
  result = current_context.run(gen.send, result)
StopIteration: 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/nix/store/xld8k8dik34zamx3f66biz13gqbz8ccw-python3-3.9.6-env/lib/python3.9/site-packages/twisted/internet/defer.py", line 1661, in _inlineCallbacks
  result = current_context.run(gen.send, result)
StopIteration: {'ed25519:a_xQGB': FetchKeyResult(verify_key=<nacl.signing.VerifyKey object at 0x7f5ba059d460>, valid_until_ts=1644247789683)}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/nix/store/si27f6ipgvymxxkxmw117d4nnp603fvv-matrix-synapse-1.51.0/lib/python3.9/site-packages/synapse/federation/transport/server/federation.py", line 101, in on_PUT
  device_list_updates = [
File "/nix/store/si27f6ipgvymxxkxmw117d4nnp603fvv-matrix-synapse-1.51.0/lib/python3.9/site-packages/synapse/federation/transport/server/federation.py", line 104, in <listcomp>
  if edu.edu_type in DEVICE_UPDATE_EDUS
AttributeError: 'dict' object has no attribute 'edu_type'

On the sending server I see:

synapse.federation.sender.transaction_manager: [federation_transaction_transmission_loop-12069] TX [xxxxx] {1643929599955} got 400 response
synapse.http.matrixfederationclient: [federation_transaction_transmission_loop-12069] {PUT-O-12769} [xxxxx] Request failed: PUT matrix://xxxxx/_matrix/federation/v1/send/1643929599955: HttpResponseException('400: Bad Request')
synapse.http.matrixfederationclient: [federation_transaction_transmission_loop-12069] {PUT-O-12769} [xxxxx] Got response headers: 400 Bad Request```

Steps to reproduce

Unfortuantely I wasn't able to figure these out so far

Version information

  • Version:
    On both systems:

{"server_version":"1.51.0","python_version":"3.9.6"}

  • Install method:

via NixOS package

  • Platform:

NixOS 21.11 based

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions