ivanfioravanti / chatbot-ollama

Chatbot Ollama is an open source chat UI for Ollama.
Other
1.33k stars 217 forks source link

Doesn't work if internet is turned off. #45

Open ssarraju opened 4 months ago

ssarraju commented 4 months ago

When internet is turned off, it throws below error

⨯ Error: failed to pipe response at pipeToNodeResponse (/app/node_modules/next/dist/server/pipe-readable.js:111:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async NextNodeServer.runEdgeFunction (/app/node_modules/next/dist/server/next-server.js:1225:13) at async NextNodeServer.handleCatchallRenderRequest (/app/node_modules/next/dist/server/next-server.js:247:37) at async NextNodeServer.handleRequestImpl (/app/node_modules/next/dist/server/base-server.js:807:17) at async invokeRender (/app/node_modules/next/dist/server/lib/router-server.js:163:21) at async handleRequest (/app/node_modules/next/dist/server/lib/router-server.js:342:24) at async requestHandlerImpl (/app/node_modules/next/dist/server/lib/router-server.js:366:13) at async Server.requestListener (/app/node_modules/next/dist/server/lib/start-server.js:140:13) { [cause]: SyntaxError: Unexpected non-whitespace character after JSON at position 101 at JSON.parse (<anonymous>) at Object.start (/app/.next/server/pages/api/chat.js:1:822) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) } Error: aborted at connResetException (node:internal/errors:787:14) at abortIncoming (node:_http_server:793:17) at socketOnClose (node:_http_server:787:3) at Socket.emit (node:events:530:35) at TCP.<anonymous> (node:net:337:12) { code: 'ECONNRESET' } ⨯ Error: failed to pipe response at pipeToNodeResponse (/app/node_modules/next/dist/server/pipe-readable.js:111:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async NextNodeServer.runEdgeFunction (/app/node_modules/next/dist/server/next-server.js:1225:13) at async NextNodeServer.handleCatchallRenderRequest (/app/node_modules/next/dist/server/next-server.js:247:37) at async NextNodeServer.handleRequestImpl (/app/node_modules/next/dist/server/base-server.js:807:17) at async invokeRender (/app/node_modules/next/dist/server/lib/router-server.js:163:21) at async handleRequest (/app/node_modules/next/dist/server/lib/router-server.js:342:24) at async requestHandlerImpl (/app/node_modules/next/dist/server/lib/router-server.js:366:13) at async Server.requestListener (/app/node_modules/next/dist/server/lib/start-server.js:140:13) { [cause]: SyntaxError: Unexpected non-whitespace character after JSON at position 99 at JSON.parse (<anonymous>) at Object.start (/app/.next/server/pages/api/chat.js:1:822) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) } Error: aborted at connResetException (node:internal/errors:787:14) at abortIncoming (node:_http_server:793:17) at socketOnClose (node:_http_server:787:3) at Socket.emit (node:events:530:35) at TCP.<anonymous> (node:net:337:12) { code: 'ECONNRESET' } o ⨯ Error: failed to pipe response at pipeToNodeResponse (/app/node_modules/next/dist/server/pipe-readable.js:111:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async NextNodeServer.runEdgeFunction (/app/node_modules/next/dist/server/next-server.js:1225:13) at async NextNodeServer.handleCatchallRenderRequest (/app/node_modules/next/dist/server/next-server.js:247:37) at async NextNodeServer.handleRequestImpl (/app/node_modules/next/dist/server/base-server.js:807:17) at async invokeRender (/app/node_modules/next/dist/server/lib/router-server.js:163:21) at async handleRequest (/app/node_modules/next/dist/server/lib/router-server.js:342:24) at async requestHandlerImpl (/app/node_modules/next/dist/server/lib/router-server.js:366:13) at async Server.requestListener (/app/node_modules/next/dist/server/lib/start-server.js:140:13) { [cause]: SyntaxError: Unexpected non-whitespace character after JSON at position 99 at JSON.parse (<anonymous>) at Object.start (/app/.next/server/pages/api/chat.js:1:822) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) } Error: aborted at connResetException (node:internal/errors:787:14) at abortIncoming (node:_http_server:793:17) at socketOnClose (node:_http_server:787:3) at Socket.emit (node:events:530:35) at TCP.<anonymous> (node:net:337:12) { code: 'ECONNRESET' }

ivanfioravanti commented 4 months ago

Are you connecting directly to Ollama on localhost or through Docker?