qdrant-js
qdrant-js copied to clipboard
TypeError: fetch failed, code: 'UND_ERR_SOCKET' during qdrant upsert, plain fetch works
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:
- ./start.sh
- npm install
- Comment not_working() or working() in people.ts
- npm run people
Observations:
- The error is thrown only when embedListOfStrings is used. If not problem doesn't exist.