Algolia Search Network Error

I am connecting Algolia with the Firebase project that I have. I use the cloud-based Firebase features to synchronize the Algolia index with all the changes that occur in my Firebase database. But whenever I call

index.saveObject (firebaseObject);

from inside the firebase cloud features i get

AlgoliaSearchNetworkError: getaddrinfo ENOTFOUND 5sffby8as8-1.algolianet.com 5sffby8as8-1.algolianet.com:443

I can start the synchronization operation only perfectly outside of the Firebase functions (only on my own machine). This code runs in the javascript file through node.js.

I did not find any current questions or answers about this in any of my searches. Any ideas or help?

+4
source share
1 answer

I found out that the Spark plan on Firebase (used by the free tier) does not allow sending outgoing requests to a third-party API. I had to switch to one of the paid plans (Flame or Blaze) in order to be able to connect to the Algolia network from the Firebase cloud features.

A disclaimer was included in their getting started guide .

+13
source

Source: https://habr.com/ru/post/1674845/


All Articles