Problem :-
I am using C# Web API's to create new users.
Whenever I create a new user and sends first request to save data on Algolia Index from that new user it does not save data on Algolia Index.
But at second request it works and saves the data, any idea what could be the reason?
Everything works fine on local solution but when I deploy project problem occurs but just for very first time. Here are both scenarios for which issue is occuring
- User is new
- User was logged out and then logged in again
I have tried :-
I am using free version of Algolia , I have contacted with support they have offered two solutions.
One is to put
Wait()afterasynchronouscall, this solution worked for sorting because there was inconsistency of same kind for sorting but this solution did not work forSaveObject()Second solution they offered is to use paid version of Algolia :(
Algolia Code in C# :-
var createFeed = await feedIndex.SaveObjectAsync(feedDocumentObject);
createFeed.Wait();