Open phreed opened 1 week ago
As you can see _encodeName was part of the private API. https://docs.twisted.org/en/twisted-24.7.0/api/twisted.web.http_headers.Headers.html?private=1
It is removed in the 24.10.0 https://docs.twisted.org/en/twisted-24.10.0/api/twisted.web.http_headers.Headers.html?private=1
I think the intent is to use the str
function instead.
Can confirm the issue. I downgraded Twisted and Synapse works again.
Running into this issue as well, prevents synapse from starting. (Synapse 1.118.0)
Can confirm downgrading to the last version of Twisted remedies the issue
Same issue on my side, downgrade also fixed the issue.
It is currently also related to https://github.com/element-hq/synapse/issues/17075.
Description
I just started getting this error.
This is due to an update to Twisted from v24.7.0 to v24.10.0 . Forcing the older version
pip install --force-reinstall -v "Twisted==24.7.0"
and that corrected the error. Apparently,_canonicalHeaderName = Headers()._encodeName
is no longer valid.Steps to reproduce
Homeserver
generating a new homeserver.yaml
Synapse Version
1.117.0
Installation Method
pip (from PyPI)
Database
sqlite
Workers
Single process
Platform
Ubuntu 24 fedora 40
Configuration
No response
Relevant log output
Anything else that would be useful to know?
I updated the
synapse/http/proxy.py
about line 74 to gain some insight. While this is not a fix, it may be useful.