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

Fail to run langchain milvus vector store sample #217

Open
webup opened this issue Aug 7, 2023 · 9 comments
Open

Fail to run langchain milvus vector store sample #217

webup opened this issue Aug 7, 2023 · 9 comments
Assignees

Comments

@webup
Copy link

webup commented Aug 7, 2023

Describe the bug:

Fail to run this sample with error messages: E Connection to dns:in03-02861d92d812d64.api.gcp-us-west1.zillizcloud.com at 34.160.220.160:443 rejected by server because of excess pings.

Steps to reproduce:

image

Milvus-node-sdk version: 2.2.23

Milvus version: Ziliz Cloud Serverless (Free)

@shanghaikid
Copy link
Contributor

looks like there is an issue on the server, we will investigate it.

@webup
Copy link
Author

webup commented Aug 13, 2023

looks like there is an issue on the server, we will investigate it.

any updates? :)

@shanghaikid
Copy link
Contributor

looks like there is an issue on the server, we will investigate it.

any updates? :)

Would you try the dedicated server? serverless may have some problem on langchain.js. it needs to be update.

@webup
Copy link
Author

webup commented Aug 14, 2023

looks like there is an issue on the server, we will investigate it.

any updates? :)

Would you try the dedicated server? serverless may have some problem on langchain.js. it needs to be update.

Got you, dedicated server works. Looking forward to the serverless update. 💪

@webup webup closed this as completed Aug 14, 2023
@webup
Copy link
Author

webup commented Aug 23, 2023

Hi there, any updates or further guides on the server side?

I've noticed and tried latest milvus client update on langchain-js, still not working w/ serverless server. :(

@shanghaikid
Copy link
Contributor

@nameczz could you please give an example?

@nameczz
Copy link
Collaborator

nameczz commented Aug 23, 2023

@webup Hi, we update example now. Please have a check.

@webup
Copy link
Author

webup commented Aug 23, 2023

@webup Hi, we update example now. Please have a check.

I've updated langchain and milvus lib to the latest, and followed this ut as the sample which should be same as your langchain.js sample, but still failed to connect the server.

  new OpenAIEmbeddings(),
  {
    collectionName: "langchain_valtown",
    // autoId: false,
    // primaryField: "id",
    clientConfig: {
      address: process.env.ZILIZ_URL,
      token: process.env.ZILIZ_API_KEY,
      ssl: true,
    },
  }

Following error messages returned:

(node:83380) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `node --trace-warnings ...` to show where the warning was created)
Error: 14 UNAVAILABLE: No connection established
    at callErrorFromStatus (/Users/haili/workspaces/lab/langchain-js/node_modules/.pnpm/@[email protected]/node_modules/@grpc/grpc-js/src/call.ts:81:17)
    at Object.onReceiveStatus (/Users/haili/workspaces/lab/langchain-js/node_modules/.pnpm/@[email protected]/node_modules/@grpc/grpc-js/src/client.ts:356:55)
    at [/Users/haili/workspaces/lab/langchain-js/node_modules/.pnpm/](https://file+.vscode-resource.vscode-cdn.net/Users/haili/workspaces/lab/langchain-js/node_modules/.pnpm/)@[email protected]/node_modules/@grpc/grpc-js/src/call-interface.ts:149:27
    at Object.onReceiveStatus (/Users/haili/workspaces/lab/langchain-js/node_modules/.pnpm/@[email protected]/node_modules/@zilliz/milvus2-sdk-node/milvus/utils/Grpc.ts:184:23)
    at Object.onReceiveStatus (/Users/haili/workspaces/lab/langchain-js/node_modules/.pnpm/@[email protected]/node_modules/@grpc/grpc-js/src/client-interceptors.ts:455:34)
    at Object.onReceiveStatus (/Users/haili/workspaces/lab/langchain-js/node_modules/.pnpm/@[email protected]/node_modules/@grpc/grpc-js/src/client-interceptors.ts:417:48)
    at [/Users/haili/workspaces/lab/langchain-js/node_modules/.pnpm/](https://file+.vscode-resource.vscode-cdn.net/Users/haili/workspaces/lab/langchain-js/node_modules/.pnpm/)@[email protected]/node_modules/@grpc/grpc-js/src/resolving-call.ts:111:24
    at processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
 {
  code: 14,
  details: 'No connection established',
  metadata: Metadata { internalRepr: Map(0) {}, options: {} }
}

@nameczz
Copy link
Collaborator

nameczz commented Aug 31, 2023

@webup hi, I'm working well after replace the real token, address and openaikey.
But i'm face this error once, resolved it after open my vpn :)
ec87cb9d-8361-4675-be0e-92c069b7924b

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