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

Client doesn't work when QDrant behind reverse proxy #94

Open
james-potter opened this issue Mar 6, 2025 · 0 comments
Open

Client doesn't work when QDrant behind reverse proxy #94

james-potter opened this issue Mar 6, 2025 · 0 comments

Comments

@james-potter
Copy link

james-potter commented Mar 6, 2025

The client can't connect when QDrant behind a NGINX reverse proxy.

Dashboard and curl connections to qdrant work when behind reverse proxy.
@qdrant/js-client-rest can't connect when QDrant behind reverse proxy.

const { QdrantClient } = require("@qdrant/js-client-rest");
const dotenv = require("dotenv");
dotenv.config();

async function testQdrant() {
    try {
        const qdrant = new QdrantClient({
            url: process.env.QDRANT_URL, // e.g., "http://your-qdrant-server:6333"
            apiKey: process.env.QDRANT_API_KEY,  // Optional, if authentication is needed
            checkCompatibility: false
        });
        const collections = await qdrant.getCollections();
        console.log("Collections:", collections);
    } catch (error) {
        console.error("Error fetching collections:", error);
    }
}

testQdrant();

when connecting directly to QDrant though firewall it work without problem using either http or https
when connecting via reverse proxy it times out.

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