chroma icon indicating copy to clipboard operation
chroma copied to clipboard

[Bug]: ChromaClient times out on Vercel's Edge network

Open DaveCBeck opened this issue 1 year ago • 6 comments

What happened?

const client = new ChromaClient({
    path: process.env.CHROMA_URL,
  });
console.log(client.heartbeat())

Is timing out on Vercel's Edge network, without sending a request through to the server that's hosting Chroma. I can access the server fine from other projects, or with the same file but not using the edge runtime. But not on the Edge.

There's no error returned, it just hangs.

I'm guessing its something to do with the APIs supported on the Edge by Vercel: https://vercel.com/docs/functions/edge-functions/edge-runtime#supported-apis ??

@moreno1123 reported a similar problem on langchain, but I think it's a chromaclient issue, hence raising here. https://github.com/langchain-ai/langchainjs/issues/3521

Versions

ChromaDB 1.6.1

DaveCBeck avatar Dec 12 '23 13:12 DaveCBeck