[#SYN-383] Error getting keys from `matrix.org`

advertisement
[SYN-383] Error getting keys from 'matrix.org' Created: 19/May/15
Updated: 26/May/15 Resolved:
22/May/15
Status:
Project:
Component/s:
Affects
Version/s:
Fix Version/s:
Resolved
Synapse
None
None
Type:
Reporter:
Resolution:
Labels:
Remaining
Estimate:
Time Spent:
Original
Estimate:
Bug
Mark Haines
Fixed
None
Not Specified
Purpose:
Defect
v0.9.1
Priority:
Assignee:
Votes:
P1
Erik Johnston
0
Not Specified
Not Specified
Description
Trying to get server keys from matrix.org always fails with "Key response not signed by
perspective server 'matrix.org'"
Comments
Comment by Erik Johnston [ 19/May/15 ]
Now fails with following exception (after adding logging):
2015-05-19 10:55:14,639 - root - 144 - ERROR - - Unable to
getting key ['ed25519:auto'] for 'thewordnerd.info' from
'matrix.org'
Traceback (most recent call last):
File
"/home/erikj/test_matrix/testmatrix1/local/lib/python2.7/sitepackages/synapse/crypto/keyring.py", line 138, in get_key
server_name, key_ids, perspective_name, perspective_keys
TypeError: string indices must be integers, not str
and
2015-05-19 10:55:14,643 - root - 144 - ERROR - - Unable to
getting key ['ed25519:auto'] for 'matrix.org' from
'matrix.org'
Traceback (most recent call last):
File
"/home/erikj/test_matrix/testmatrix1/local/lib/python2.7/sitepackages/synapse/crypto/keyring.py", line 140, in get_key
defer.returnValue(result)
File
"/home/erikj/test_matrix/testmatrix1/local/lib/python2.7/sitepackages/twisted/internet/defer.py", line 1076, in returnValue
raise _DefGen_Return(
Comment by Erik Johnston [ 19/May/15 ]
The _DefGen_Return is caused by the fact we have a generic try ... except: ... which
will catch BaseExceptions including _DefGen_Return.
Comment by Erik Johnston [ 19/May/15 ]
The TypeError: string indices must be integers, not str exception is due to:
for key_id, key_data in response_json["verify_keys"].items():
...
key_base64 = key_data["key"]
...
Where response_json includes:
'verify_keys': {
'ed25519:auto':
'h3zOGO9pFJ+6MEZlbQIwylrf1ANVnQto408Uez+biaw'
}
Generated at Tue Feb 09 16:20:05 GMT 2016 using JIRA 6.3.5a#6334sha1:09a5455216f716a7a0d602c94d19149d1a45bbcc.
Download