algolia / algoliasearch-client-swift

⚑️ A fully-featured and blazing-fast Swift API client to interact with Algolia.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unreachable hosts error never thrown

VladislavFitz opened this issue Β· comments

Describe the bug πŸ›

According to our API Clients specification, if the list of hosts within the retry strategy is exhausted, the Unreachable hosts error must be return.
Currently, in this case the API client resets the state of all the hosts causing the infinite loop.

Expected behavior πŸ’­
When all the hosts tried with no success, the API call must return the Unreachable hosts error.
The states of the hosts must be reset only if there is no host available for a fresh API call.

Environment:

  • OS: All supported platforms
  • Version 8.1