-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Bug]: Not able to list the collection through REST #39587
Comments
For more information: command output. curl -v -X POST "http://localhost:12345/v2/vectordb/collections/list" -d '{ "dbName": "_default" }' Received HTTP/0.9 when not allowed |
root@scs000514932: |
Thinking, might be ubuntu is not supporting HTTP/0.9. |
/assign @smellthemoon |
Tried in linux redhat system as well. In the same issue. curl --request POST --url "http://localhost:12345/v2/vectordb/collections/list" --header "Content-Type: application/json" -d '{ "dbName": "_default"}'
|
Here is some more trial but still failing.. root@scs000514932:~/.kube# curl -v --http0.9 --request POST --url "${CLUSTER_ENDPOINT}/v2/vector/collections/list" --header "Authorization: Bearer ${TOKEN}" --header "Content-Type: application/json" Warning: Binary output can mess up your terminal. Use "--output -" to tell |
try see if this could work |
This is also not working out. `
curl -v --http0.9 --request POST --url "http://localhost:12345/v2/vectordb/collections/list" --header "Content-Type: application/json" --data '{ "dbName": "_default" }'
Warning: Binary output can mess up your terminal. Use "--output -" to tell
|
It seems to be Connection refused, which means it has nothing to do with milvus itself. Could you do telnet 12345 port and see if it's connectable? |
@xiaofan-luan I am facing the same issue with milvus v2.5.0
The verbose for the curl also shows that the connection to localhost:12345 was successful.
|
@nileshsironja [please check your proxy.http.port config](services-milvus-proxy-67855ffb47-cfc96.log:[2025/01/24 08:19:09.453 +00:00] [INFO] [proxy/listener_manager.go:156] ["Proxy server(http) listen on"] [port=8080]) please check the config of your restful port. 19530 is by default for grpc |
@xiaofan-luan What I could see with my milvus service setup is that only these 2 ports are exposed
Even on trying to do port forwarding to 8080 port I see this
Also, these endpoints used to work fine for me with older rest sdk and have started seeing this issue recently on 2.5.x. Also the web-content repo refers to using 19530 - https://github.com/milvus-io/web-content/blob/dependabot/npm_and_yarn/katex-0.16.21/API_Reference/milvus-restful/v2.4.x/About.md |
@xiaofan-luan I also checked the proxy ports are 19530, 9091 only.
|
As I said, you set the config proxy.http.port to 8080. |
This is what I do:
everything seems to be perfect. please offer how you deploy this cluster to help on reproducing |
@xiaofan-luan Now facing issue with flushing the collection - 404, page not found
|
Adding to my previous comment for flushing milvus collections. Here are the port-forwarding.. These are the command I've tried. Ideally "56789" port should be listening. Please suggest. |
remove --http0.9. I don't know how you changed your config but your restful port is changed to 8080, based on the log. |
I've tried with and without --http0.9 and port 12345 and 56789, no one worked for me. Next what I tried is entered in proxy pod bash and tried listing the collection and it worked: But flush is still throwing 404 page not found. Is there a way to mention the db name also in flush command? just to be more specific. |
2.5.0 don't have flush API support for restful. |
also, I don't think you need to call flush API directly for most of your use cases. |
@xiaofan-luan Thanks, I'll setup for v2.5.4 and validate the functionality. My intention was it got added by v2.5.0. |
@xiaofan-luan Updated milvus version v2.5.4 make flushing work for me. Thank you! |
Is there an existing issue for this?
Environment
Current Behavior
Rest/curl command to fetch/flush the list of collection is not working.
I've created the collection and inserted some data. Can retrieve the data as well.
Expected Behavior
List the collections.
Steps To Reproduce
Milvus Log
milvus-log.tar.gz
Anything else?
No response
The text was updated successfully, but these errors were encountered: