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

fetch failed #810

Open
rookiewxy opened this issue Jul 19, 2024 · 1 comment
Open

fetch failed #810

rookiewxy opened this issue Jul 19, 2024 · 1 comment

Comments

@rookiewxy
Copy link

rookiewxy commented Jul 19, 2024

node v22.0.0
system windows

example:
import { HfInference } from "@huggingface/inference";
const hf = new HfInference('xxx');
const out = await hf.chatCompletion({
model: "mistralai/Mistral-7B-Instruct-v0.2",
messages: [{ role: "user", content: "Complete the this sentence with words one plus one is equal " }],
max_tokens: 100
});

Errors are as follows:
node:internal/deps/undici/undici:12500
Error.captureStackTrace(err, this);
^

TypeError: fetch failed
at node:internal/deps/undici/undici:12500:13

@coyotte508
Copy link
Member

Could be a DNS issue, hard to track down with this stack trace :/

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

2 participants