最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Algolia Search Network Error - Stack Overflow

programmeradmin2浏览0评论

I'm connecting Algolia with a Firebase project I have. I'm using the Firebase Cloud Functions in order to keep my Algolia index synced with all changes that occur in my Firebase database. But whenever I call

index.saveObject(firebaseObject);

from inside my Firebase Cloud Functions, I get

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

I can run the syncing operation just fine outside of Firebase Functions (just on my own machine). This code is run in a javascript file through node.js.

I haven't found any current questions or answers about this in any of my searches. Any ideas or help?

I'm connecting Algolia with a Firebase project I have. I'm using the Firebase Cloud Functions in order to keep my Algolia index synced with all changes that occur in my Firebase database. But whenever I call

index.saveObject(firebaseObject);

from inside my Firebase Cloud Functions, I get

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

I can run the syncing operation just fine outside of Firebase Functions (just on my own machine). This code is run in a javascript file through node.js.

I haven't found any current questions or answers about this in any of my searches. Any ideas or help?

Share Improve this question edited Apr 14, 2017 at 18:08 Nicholas Harrison asked Apr 14, 2017 at 17:59 Nicholas HarrisonNicholas Harrison 4714 silver badges8 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 30

I found out that the Spark plan on Firebase (the free-tier that I was using) doesn't allow outbound requests to 3rd-party APIs. I had to upgrade to one of the paid plans (Flame or Blaze) to be able to connect to the Algolia network from within the Firebase Cloud Functions.

A caveat was included in their getting started guide.

发布评论

评论列表(0)

  1. 暂无评论