Skip to content

Commit 8d13d59

Browse files
committed
docs: retry strategy for discovery endpoint failures
Signed-off-by: Pavel Shukhman <[email protected]>
1 parent 5dadce9 commit 8d13d59

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

discovery/readme.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,13 @@ the TEA OpenAPI specification.
246246
If the TEI is not known to the TEA server, the discovery endpoint must return a 404
247247
status code with a response describing the error.
248248

249+
If the DNS record for the discovery endpoint cannot be resolved by the client, or
250+
the discovery endpoint fails with 5xx error code, or the TLS certificate cannot be validated,
251+
the client MUST retry the discovery endpoint with the next endpoint in the list, if another
252+
endpoint is present. If no other endpoint is available, the client MUST retry the discovery
253+
endpoint with the first endpoint in the list. The client SHOULD implement an exponential
254+
backoff strategy for retries.
255+
249256
TODO: Handle Auth errors (401, 403) and corresponding messages.
250257

251258
## Notes Regarding .well-known

0 commit comments

Comments
 (0)