Closed liujvnes closed 6 months ago
Seems like manual installation and you forgot to install SearXNG. Install SearXNG and update its URL in the config file.
can we have a remainder to install SearXNG in README ?
can we have a remainder to install SearXNG in README ?
Added
Windows PowerShell 版权所有(C) Microsoft Corporation。保留所有权利。
安装最新的 PowerShell,了解新功能和改进!https://aka.ms/PSWindows
PS C:\Ai Project\Perplexica> npm run start
info: WebSocket server started on port 3001 info: Server is running on port 3001
node:internal/process/promises:289 triggerUncaughtException(err, true / fromPromise /); ^ AxiosError [AggregateError] at AxiosError.from (C:\Ai Project\Perplexica\node_modules\axios\dist\node\axios.cjs:836:14) at RedirectableRequest.handleRequestError (C:\Ai Project\Perplexica\node_modules\axios\dist\node\axios.cjs:3086:25) at RedirectableRequest.emit (node:events:518:28) at eventHandlers. (C:\Ai Project\Perplexica\node_modules\follow-redirects\index.js:38:24)
at ClientRequest.emit (node:events:518:28)
at Socket.socketErrorListener (node:_http_client:500:9)
at Socket.emit (node:events:518:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
at Axios.request (C:\Ai Project\Perplexica\node_modules\axios\dist\node\axios.cjs:3876:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async searchSearxng (C:\Ai Project\Perplexica\dist\lib\searxng.js:22:17)
at async RunnableLambda.func (C:\Ai Project\Perplexica\dist\agents\webSearchAgent.js:82:25)
at async C:\Ai Project\Perplexica\node_modules\@langchain\core\dist\runnables\base.cjs:1385:33 {
code: 'ECONNREFUSED',
errors: [
Error: connect ECONNREFUSED ::1:32768
at createConnectionError (node:net:1646:14)
at afterConnectMultiple (node:net:1676:16) {
errno: -4078,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 32768
},
Error: connect ECONNREFUSED 127.0.0.1:32768
at createConnectionError (node:net:1646:14)
at afterConnectMultiple (node:net:1676:16) {
errno: -4078,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 32768
}
],
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ 'xhr', 'http' ],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
env: {
FormData: [Function: FormData] {
LINE_BREAK: '\r\n',
DEFAULT_CONTENT_TYPE: 'application/octet-stream'
},
Blob: [class Blob]
},
validateStatus: [Function: validateStatus],
headers: Object [AxiosHeaders] {
Accept: 'application/json, text/plain, /',
'Content-Type': undefined,
'User-Agent': 'axios/1.6.8',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
method: 'get',
url: 'http://localhost:32768/search?format=json&q=The+rephrased+question+is%3A%0A%0A%3E+What+is+Docker%3F%0A%0AThis+question+is+standalone+and+can+be+used+by+the+LLM+to+search+the+web+for+information.&language=en',
data: undefined
},
request: <ref *2> Writable {
_events: {
close: undefined,
error: [Function: handleRequestError],
prefinish: undefined,
finish: undefined,
drain: undefined,
response: [Function: handleResponse],
socket: [Function: handleRequestSocket]
},
_writableState: WritableState {
highWaterMark: 16384,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
}, cause: AggregateError [ECONNREFUSED]: at internalConnectMultiple (node:net:1116:18) at afterConnectMultiple (node:net:1683:7) { code: 'ECONNREFUSED',
} }
Node.js v20.12.2 PS C:\Ai Project\Perplexica> #