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
{{ message }}
Repository navigation
feat: time out requests of the REST providers #599
The components of all client packages await their provider's requests without a deadline. A request that never settles (e.g. a server that accepts the connection but never answers) leaves a component showing loading placeholders indefinitely, without an error or an event. Sourcery raised this on #597 (service-info, service-types); the same holds for every component.
What?
Add an optional request timeout to the REST providers (e.g. a timeout option passed to fetch as AbortSignal.timeout()), with a default of some tens of seconds, so that an expired request rejects and the components show their usual error.
Custom providers keep control over their own deadlines; document that a provider should reject instead of never settling.
Tests: an expired request shows the error and emits the empty data event.
Docs: the option in the providers docs of each package.
Activity
feat(cloud-registry): time out REST requests
feat(tes): time out REST requests
feat(wes): time out REST requests
feat(trs): time out REST requests
feat(trs-filer): time out REST requests
feat(drs): time out REST requests
feat(drs-filer): time out REST requests
docs: describe request timeouts of providers
fix(design): harden request timeouts
docs: clarify request timeouts of providers
fix(design): keep timeout error without reasons
fix(design): follow request signals like fetch