iissnan / iissnan/theme-next-docs
安装Algolia总是报“AlgoliaSearchNetworkError: connect ETIMEDOUT”错误,请问有人能帮忙解答下吗,多谢
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 165
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
安装时报如下错误:
`INFO Generated: lib/Han/dist/font/han-space.woff
INFO Generated: lib/Han/dist/font/han.woff
INFO Generated: lib/Han/dist/font/han.otf
INFO Generated: lib/Han/dist/font/han.woff2
INFO Generated: js/src/schemes/pisces.js
INFO 114 files generated in 1.52 s
INFO [Algolia] Index cleared.
INFO [Algolia] Starting indexation...
E:\code\hexo\node_modules\hexo-algolia\lib\command.js:99
throw err;
^
AlgoliaSearchNetworkError: connect ETIMEDOUT 103.6.130.168:443
at ClientRequest.error (E:\code\hexo\node_modules\algoliasearch\src\server\builds\node.js:228:14)
at Object.onceWrapper (events.js:315:30)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at TLSSocket.socketErrorListener (_http_client.js:387:9)
at emitOne (events.js:116:13)
at TLSSocket.emit (events.js:211:7)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
`
我已经在algolia上创建了两个key:

环境变量设置如下:
` set HEXO_ALGOLIA_INDEXING_KEY=02af6487d661e27b78dc908631212cdc`
hexo的配置文件如下:
`# Algolia configuration
algolia:
applicationID: 'UQG1SBYN9A'
apiKey: '02af6487d661e27b78dc908631212cdc'
adminApiKey: ' '
indexName: ' '
chunkSize: 5000`
algolia安装信息如下:
`$ npm install hexo-algolia@0.2.0
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ hexo-algolia@0.2.0
updated 1 package in 4.179s
`
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at node_modules/hexo-algolia/lib/command.js:99 and trace the Algolia indexing request shown in the stack trace. Verify the supplied Algolia configuration and whether the Windows environment can reach the reported HTTPS endpoint; done means indexing completes without the timeout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100