When an index doesn’t exist, and you’re using the replaceAllObjects with the safe parameter, the method can get stuck and hang forever. This happens because the method expects the index to exist.
To fix this issue, you can either create the index using the Algolia dashboard, or with the API using an empty setSettings.