URL path is removed
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 464
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at QdrantClient URL and prefix handling, using the reported URL with /qdrant and the working prefix configuration as comparison points. Reproduce the request through an nginx /qdrant proxy and inspect the generated request URL. Done means the configured path is handled consistently and the proxied request no longer returns 404.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nginx, typescript
- Domain
- api, networking
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100