This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Use the v2 Identity Service API for lookups (MSC2134 + MSC2140) #5976
Use the v2 Identity Service API for lookups (MSC2134 + MSC2140) #5976
Changes from 19 commits
1954438
24ee3ae
902ef39
3a114fe
5426e13
73fb6f3
2472e2e
7bfccad
75ef0f8
e68d648
38dac27
8f1346d
4dc0849
849d8dc
d9d156b
42b11bd
83021d9
07154ea
f4b7f7f
29c3489
ff5f6a0
a5153af
7f647bc
f8bb859
1c59243
1b20928
db1d161
9f92c3e
07169b1
5b852c2
0d968c0
f18f3f1
18671b0
649dcbe
b4520ea
79f5c4f
cf8dbea
7008c79
ffb284e
317dff6
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we're doing this, should we check for other exceptions like "failed to connect"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I think
ValueError
doesn't have acode
attribute either, which would cause this code to fail.Should we drop
ValueError
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mm, yeah I'm leaning towards dropping
ValueError
since that's considered a different error from an old IS.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we allow this to be None, or not? currently we can pass in None sometimes...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Theoretically
_lookup_3pid_v2
should never be called ifid_access_token
is None, ashash_details
is an authenticated endpoint.