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

[Bug]: can not use function like reset ...etc(TS) #2038

Open
honorsuper opened this issue Apr 22, 2024 · 1 comment
Open

[Bug]: can not use function like reset ...etc(TS) #2038

honorsuper opened this issue Apr 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@honorsuper
Copy link

honorsuper commented Apr 22, 2024

What happened?

const startDB=async ()=>{
const cc= new chroma.ChromaClient({ path: "http://localhost:8000" });
await cc.reset();
}
image

Versions

Chroma:1.8.1,node:v21.7.3,OS:,Macos

Relevant log output

@honorsuper honorsuper added the bug Something isn't working label Apr 22, 2024
@tazarov
Copy link
Contributor

tazarov commented Apr 23, 2024

hey @honorsuper, the error you see usually happens when you cannot connect to Chroma. If you have started Chroma locally (e.g. via docker or chroma run) then try using http://127.0.0.1:8000. Some computers/servers are configured with dual stack which makes it possible for them to bind on localhost IPV6 but not on localhost IPV4 and vice versa.

JS/Node, for some reason, does not try to connect to those dual-stack endpoints and instead picks the first one it can resolve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants