Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request timeout #144

Open
PaPaPaulitos opened this issue Sep 18, 2024 · 1 comment
Open

Request timeout #144

PaPaPaulitos opened this issue Sep 18, 2024 · 1 comment

Comments

@PaPaPaulitos
Copy link

I'm doing a project with Ollama and I'm getting an error that after 5 minutes the Ollama js library drops the request, and I use this same Ollama server in my own chat and it has never given this session expiration error.

Error generating article: TypeError: fetch failed
    at node:internal/deps/undici/undici:13185:13
    at async post (/home/paulitos/Documentos/ab-prompter/node_modules/ollama/dist/shared/ollama.9c897541.cjs:114:20)
    at async Ollama.processStreamableRequest (/home/paulitos/Documentos/ab-prompter/node_modules/ollama/dist/shared/ollama.9c897541.cjs:253:22)
    at async generateArticleWithLLM (/home/paulitos/Documentos/ab-prompter/src/application/articleUseCases.ts:23:30)
    at async fullArticleGeneratedByLLM (/home/paulitos/Documentos/ab-prompter/src/application/articleUseCases.ts:67:21)
    at async /home/paulitos/Documentos/ab-prompter/src/controllers/routerController.ts:46:22
    at async bodyParser (/home/paulitos/Documentos/ab-prompter/node_modules/koa-bodyparser/index.js:78:5) {
  [cause]: HeadersTimeoutError: Headers Timeout Error
      at Timeout.onParserTimeout [as callback] (node:internal/deps/undici/undici:5995:32)
      at Timeout.onTimeout [as _onTimeout] (node:internal/deps/undici/undici:2356:17)
      at listOnTimeout (node:internal/timers:594:17)
      at processTimers (node:internal/timers:529:7) {
    code: 'UND_ERR_HEADERS_TIMEOUT'
  }
}
Error generating full article: Error: fetch failed
    at generateArticleWithLLM (/home/paulitos/Documentos/ab-prompter/src/application/articleUseCases.ts:50:11)
    at async fullArticleGeneratedByLLM (/home/paulitos/Documentos/ab-prompter/src/application/articleUseCases.ts:67:21)
    at async /home/paulitos/Documentos/ab-prompter/src/controllers/routerController.ts:46:22
    at async bodyParser (/home/paulitos/Documentos/ab-prompter/node_modules/koa-bodyparser/index.js:78:5)
Error generating full article: Error: fetch failed
    at fullArticleGeneratedByLLM (/home/paulitos/Documentos/ab-prompter/src/application/articleUseCases.ts:79:11)
    at async /home/paulitos/Documentos/ab-prompter/src/controllers/routerController.ts:46:22
    at async bodyParser (/home/paulitos/Documentos/ab-prompter/node_modules/koa-bodyparser/index.js:78:5)
@hopperelec
Copy link
Contributor

Looks like a duplicate of #103

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants