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

always fetch failed #49

Open
DravenYe opened this issue Sep 20, 2024 · 2 comments
Open

always fetch failed #49

DravenYe opened this issue Sep 20, 2024 · 2 comments

Comments

@DravenYe
Copy link

when I click to upload the document, it always shows "fetch failed"

I have installed the version of v1.1.2, chatd-windows-x64.zip

can anyone help me.........

image

@Shen-Yukang
Copy link

Shen-Yukang commented Dec 24, 2024

Hi, I am a freshman in transformer. js, I have met a similar problem when uploading a file. And I find the error was thrown by embedding.js.
44541735023221_ pic

Is there any tips or advice on how to fixe this problem.
I appreciate your advice and assistance. Thank you!

@Shen-Yukang
Copy link

Shen-Yukang commented Dec 24, 2024

Hi, I am a freshman in transformer. js, I have met a similar problem when uploading a file. And I find the error was thrown by embedding.js. 44541735023221_ pic

Is there any tips or advice on how to fixe this problem. I appreciate your advice and assistance. Thank you!

To clarify, I selected "llama3.2" as local llm model.
Detailed error stacks as below:

 at embed (/Users/my/xxxxxx/src/service/embedding.js:52:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at runNextTicks (node:internal/process/task_queues:64:3)
    at process.processImmediate (node:internal/timers:447:9)
    at async MessagePort.<anonymous> (/Users/xxxxxx/src/service/worker.js:24:28) {
  [cause]: ConnectTimeoutError: Connect Timeout Error
      at onConnectTimeout (node:internal/deps/undici/undici:7967:28)
      at node:internal/deps/undici/undici:7925:50
      at Immediate._onImmediate (node:internal/deps/undici/undici:7956:13)
      at process.processImmediate (node:internal/timers:476:21) {
    code: 'UND_ERR_CONNECT_TIMEOUT'
  }
}
Storing embeddings...
(node:4096) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'map')
    at VectorStore.addEmbeddings (/Users/xxxxxx/src/service/vector.js:25:30)
    at store (/Users/xxxxxx/src/service/vector.js:68:21)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Worker.<anonymous> (/Users/xxxxxx/src/api.js:156:7)

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