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

URL path is removed #64

Open
tonisives opened this issue Feb 29, 2024 · 3 comments
Open

URL path is removed #64

tonisives opened this issue Feb 29, 2024 · 3 comments

Comments

@tonisives
Copy link

I am using nginx to proxy connection to qdrant node via /qdrant path.

The qdrant library seems to remove the path from url:

  new QdrantClient({
    url: "http://{ip}:6333/qdrant",
    apiKey: process.env.QDRANT_API_KEY,
  })

this returns 404. As you can see, the /qdrant path is removed

  url: 'http://{ip}:6333/collections/ah-00000000-b9b5-findings',
  status: 404,
  statusText: 'Not Found',
  data: '<html>\r\n' +
    '<head><title>404 Not Found</title></head>\r\n' +
    '<body>\r\n' +
    '<center><h1>404 Not Found</h1></center>\r\n' +
    '<hr><center>nginx/1.25.4</center>\r\n' +
    '</body>\r\n' +
    '</html>\r\n'
}

If I use the prefix variable, then the request is successful

  new QdrantClient({
    url: "http://{ip}:6333",
    prefix: "/qdrant",
    apiKey: process.env.QDRANT_API_KEY,
  })

qdrant.js: 1.7.0

@tonisives
Copy link
Author

Another issue problem with this kind of setup is that qdrant dashboard doesn't work. This is because the dashboard queries embeddings from localhost:6333. Without the relative /qdrant path.

note: I am not sysadmin expert so my setup might not be the standard one

@fedecompa
Copy link

fedecompa commented Apr 15, 2024

there is a similar open issue:

qdrant/qdrant-web-ui#94

@PylotLight
Copy link

Hey @fedecompa,

Actually this isn't the exact same issue as the other one, the main repo issue does use some path but just not the full dashboard paths, however this issue for collections page doesn't include any subpaths as all. It attempts to access the direct host host/collections, instead of the full FQDN.

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

3 participants