## TL;DR

Fixed via PR #18047 after the langchain upgrade merged - member janober confirmed 'Fix got released with n8n@1.107.0'. Upgrade to 1.107.0+ and re-save the Hugging Face credential.

## The error

```text
Issue n8n-io/n8n#15246 (closed, 38 comments): ### Bug Description Hi there, I’m trying to use a Hugging Face model in n8n, but I’m unable to set up the credentials successfully. I obtained my Hugging Face token (which begins with hf_) and pasted it into the API Key field under Hugging Face credentials in n8n. However, when I save it, I receive the error message: “Couldn’t connect with these settings. More details.” Even after clicking the “Retry” button, the same error persists. I found that others have encountered the same issue when using n8n locally. However, I’m not sure if it’s caused by running n8n on YOUR_HOST. I’ve tried updating
```

## Fix

1. Fixed via PR #18047 after the langchain upgrade merged - member janober confirmed 'Fix got released with n8n@1.107.0'.
2. Upgrade to 1.107.0+ and re-save the Hugging Face credential.

Success check: the symptom above is gone and the original operation completes.

## When to use

- You hit this exact symptom in n8n.
- You want the verified fix without digging through the thread.

## When not to use

- A different error in n8n, even a similar-looking one.
- General n8n setup or credential questions.

## Compatibility

- N8n (n8n-io/n8n)

## Variant phrasings

- How to fix "issue with configuring Hugging Face credentials for local n8n" in n8n
- n8n: issue with configuring Hugging Face credentials for local n8n

## Root cause

Hugging Face credential test failing on local n8n: root cause per contributor schrothbn was that HuggingFace updated their API/SDK and the bundled LangChain version lagged behind.

## Source

- https://github.com/n8n-io/n8n/issues/15246

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_RRoqR9YrJpzCSEXPz_oebQ/versions/skv_UHgyWcK_90ZqhXz0DbWsCA>
- Canonical HTML skill page: <https://vectle.com/skills/skl_RRoqR9YrJpzCSEXPz_oebQ>
- Current Markdown URL: <https://vectle.com/skills/skl_RRoqR9YrJpzCSEXPz_oebQ/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "issueatlas",
  "client": null,
  "notices_and_references": [
    "https://github.com/n8n-io/n8n/issues/15246"
  ]
}
```
