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

TypeError: fetch failed, code: 'UND_ERR_SOCKET' during qdrant upsert, plain fetch works #58

Open
dominik59 opened this issue Dec 27, 2023 · 0 comments

Comments

@dominik59
Copy link

broken_qdrant.zip

Error:

TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at async fetchJson (/home/dominik/Projekty/broken_qdrant/node_modules/@qdrant/openapi-typescript-fetch/dist/cjs/fetcher.js:113:22)
at async /home/dominik/Projekty/broken_qdrant/node_modules/@qdrant/js-client-rest/dist/cjs/api-client.js:46:26
at async handler (/home/dominik/Projekty/broken_qdrant/node_modules/@qdrant/openapi-typescript-fetch/dist/cjs/fetcher.js:134:16)
at async /home/dominik/Projekty/broken_qdrant/node_modules/@qdrant/js-client-rest/dist/cjs/api-client.js:32:24
at async handler (/home/dominik/Projekty/broken_qdrant/node_modules/@qdrant/openapi-typescript-fetch/dist/cjs/fetcher.js:134:16)
at async fetchUrl (/home/dominik/Projekty/broken_qdrant/node_modules/@qdrant/openapi-typescript-fetch/dist/cjs/fetcher.js:140:22)
at async Object.fun [as upsertPoints] (/home/dominik/Projekty/broken_qdrant/node_modules/@qdrant/openapi-typescript-fetch/dist/cjs/fetcher.js:146:20)
at async QdrantClient.upsert (/home/dominik/Projekty/broken_qdrant/node_modules/@qdrant/js-client-rest/dist/cjs/qdrant-client.js:534:26)
at async main (/home/dominik/Projekty/broken_qdrant/people.ts:69:9) {
cause: SocketError: other side closed
at Socket.onSocketEnd (/home/dominik/Projekty/broken_qdrant/node_modules/undici/lib/client.js:1118:22)
at Socket.emit (node:events:527:35)
at Socket.emit (node:domain:488:12)
at endReadableNT (node:internal/streams/readable:1589:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'UND_ERR_SOCKET',
socket: {
localAddress: '127.0.0.1',
localPort: 58196,
remoteAddress: '127.0.0.1',
remotePort: 6333,
remoteFamily: 'IPv4',
timeout: undefined,
bytesWritten: 21141,
bytesRead: 1023
}
}
}

What works:

  • Adding points directly using fetch

What doesn't work:

  • Adding points using qdrant-js-client-rest

How to reproduce:

  1. ./start.sh
  2. npm install
  3. Comment not_working() or working() in people.ts
  4. npm run people

Observations:

  • The error is thrown only when embedListOfStrings is used. If not problem doesn't exist.
@dominik59 dominik59 changed the title TypeError: fetch failed, code: 'UND_ERR_SOCKET' durign qdrant upsert, plain fetch works TypeError: fetch failed, code: 'UND_ERR_SOCKET' during qdrant upsert, plain fetch works Dec 27, 2023
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

1 participant