Algolia搜索导致heroku应用程序崩溃

时间:2017-05-15 18:09:55

标签: node.js firebase heroku algolia

我正在尝试在heroku服务器上使用algolia搜索。 它在当地工作正常。但是当它加载到heroku时崩溃会产生这样的结果:

 /app/dist/algolia/algolia-manager.js:28
2017-05-15T17:40:19.948991+00:00 app[web.1]:                 throw err;
2017-05-15T17:40:19.948991+00:00 app[web.1]:                 ^
2017-05-15T17:40:19.948996+00:00 app[web.1]: AlgoliaSearchNetworkError: getaddrinfo ENOTFOUND bzkq9hqh2-1.algolianet.com bzkq9hqh2-1.algolianet.com:443
2017-05-15T17:40:19.948998+00:00 app[web.1]:     at ClientRequest.error (/app/node_modules/algoliasearch/src/server/builds/node.js:227:14)
2017-05-15T17:40:19.948998+00:00 app[web.1]:     at ClientRequest.g (events.js:292:16)
2017-05-15T17:40:19.948998+00:00 app[web.1]:     at emitOne (events.js:96:13)
2017-05-15T17:40:19.948999+00:00 app[web.1]:     at ClientRequest.emit (events.js:188:7)
2017-05-15T17:40:19.949000+00:00 app[web.1]:     at TLSSocket.socketErrorListener (_http_client.js:309:9)
2017-05-15T17:40:19.949000+00:00 app[web.1]:     at emitOne (events.js:96:13)
2017-05-15T17:40:19.949001+00:00 app[web.1]:     at TLSSocket.emit (events.js:188:7)
2017-05-15T17:40:19.949001+00:00 app[web.1]:     at connectErrorNT (net.js:1021:8)
2017-05-15T17:40:19.949002+00:00 app[web.1]:     at _combinedTickCallback (internal/process/next_tick.js:80:11)
2017-05-15T17:40:19.949002+00:00 app[web.1]:     at process._tickCallback (internal/process/next_tick.js:104:9)

托管here的简单示例就是这种情况。 有人知道怎么处理这个吗?

1 个答案:

答案 0 :(得分:2)

您的APPID缺少一个字符,这就是您看到此错误的原因。