Skip to content

When client is configured using url, port seems to be incorrectly set on some methods #59

@sinedied

Description

@sinedied

I have a weird error: when Qdrant client is initialized with a full URL (ie https://hostname:port), client methods fails with a fetch failed / timeout errors but some don't.

The code:

const qdrantClient = new QdrantClient({ url: 'https://mydomain.com:443' });
try {
  await qdrantClient.getCollection('test');
}  catch (e) {
  console.log(e);
}

When used locally with a URL like http://localhost:6333 there's no issue, but when the URL is https://mydomain.com:443 I get a fetch failed error.

If I add the port manually in the client setup:

const qdrantClient = new QdrantClient({ url: 'https://mydomain.com:443', port: 443 });

It works normally.

EDIT: It also seems only some methods are affected by this, as I can make search queries just fine without having the port explicitly set?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions