You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seeking commentary on what the resolve() function in our DID method/resolver implementations should do when there is either a network failure or upstream gateway failure. Examples include:
for did:web, when attempting a GET to the server specified by the DID URI the network call might return a failure or the remote server could respond with status codes 404, 500, 503, etc.
for did:dht, there are multiple steps in the resolution process where network calls or upstream gateways might return an error status
Note
This only pertains to DID methods in which resolution relies on an external service. In other words, we need to consider for did:dht and did:web but not did:jwk or did:key.
We haven't yet added test vectors for DID DHT but there is one test for DID Web checks for didResolutionMetadata containing an error value of notFound given an invalid domain.
Do we want to mirror this pattern for other DID test vectors? Should implementations raise an exception? (Kotlin/JS) or return an error result (Go, Rust). Is it up to the implementation and all of the Web5 SDKs will do it differently?
@andresuribe87 Given that, what are your thoughts on returning internalError in the event the HTTP GET request during resolution of a did:web DID either outright fails (network transport layer issue) or returns a status code other than 200?
Seeking commentary on what the
resolve()
function in our DID method/resolver implementations should do when there is either a network failure or upstream gateway failure. Examples include:did:web
, when attempting a GET to the server specified by the DID URI the network call might return a failure or the remote server could respond with status codes 404, 500, 503, etc.did:dht
, there are multiple steps in the resolution process where network calls or upstream gateways might return an error statusNote
This only pertains to DID methods in which resolution relies on an external service. In other words, we need to consider for
did:dht
anddid:web
but notdid:jwk
ordid:key
.We haven't yet added test vectors for DID DHT but there is one test for DID Web checks for
didResolutionMetadata
containing an error value ofnotFound
given an invalid domain.Do we want to mirror this pattern for other DID test vectors? Should implementations raise an exception? (Kotlin/JS) or return an error result (Go, Rust). Is it up to the implementation and all of the Web5 SDKs will do it differently?
Additional Reference Information
The text was updated successfully, but these errors were encountered: