alephdata / aleph

Search and browse documents and data; find the people and companies you look for.
http://docs.aleph.occrp.org
MIT License
2k stars 266 forks source link

BUG: Metadata API Request Error Handling #3812

Open richardjennings-occrp opened 1 month ago

richardjennings-occrp commented 1 month ago

Describe the bug The UI does not utilise a retry limit or backoff for retrying Metadata API requests when the API is not available.

To Reproduce Steps to reproduce the behavior:

  1. Start the UI without an Aleph API available

Expected behaviour The UI should retry a number of times delayed by some form of backoff.

If a maximum number of retries is reached there should be some button to try again (refresh).

Aleph version Current

Screenshots

network-error-spinning

Additional context

dimitardanailov commented 1 month ago

Dear @richardjennings-occrp

I've created a new pull request: https://github.com/alephdata/aleph/pull/3813 I'd like to request to review my patch / pull request.