terry
terry
RRailway
Created by terry on 10/18/2023 in #✋|help
Trouble connecting to another service via private host
I set up a docker image which uses port 6333. The connection url they expect is http://host:6333. I set an environment variable PORT to 6333. I have a web app which tries to connect to the port but gets denied. If I expose the docker image via public url, it connects without a problem. Error initializing vector db TypeError: fetch failed at Object.fetch (node:internal/deps/undici/undici:11576:11) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async fetchJson (/app/node_modules/@qdrant/openapi-typescript-fetch/dist/cjs/fetcher.js:113:22) at async /app/node_modules/@qdrant/js-client-rest/dist/cjs/api-client.js:44:26 at async handler (/app/node_modules/@qdrant/openapi-typescript-fetch/dist/cjs/fetcher.js:134:16) at async /app/node_modules/@qdrant/js-client-rest/dist/cjs/api-client.js:30:24 at async handler (/app/node_modules/@qdrant/openapi-typescript-fetch/dist/cjs/fetcher.js:134:16) at async fetchUrl (/app/node_modules/@qdrant/openapi-typescript-fetch/dist/cjs/fetcher.js:140:22) at async Object.fun [as getCollections] (/app/node_modules/@qdrant/openapi-typescript-fetch/dist/cjs/fetcher.js:146:20) at async QdrantClient.getCollections (/app/node_modules/@qdrant/js-client-rest/dist/cjs/qdrant-client.js:780:26) { cause: Error: connect ECONNREFUSED fd12:cf8d:782e::c:a73d:5c5:6333 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: 'fd12:cf8d:782e::c:a73d:5c5', port: 6333 } Want to figure out what's the configuration to allow the connection?
17 replies