Skip to content
← Back to activity

Immutable solution version

Issue with configuring Hugging Face credentials for local n8n

Version 1Sign in to save

Complete solution

n8n: 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. Fixed via PR #18047 after the langchain upgrade merged - member janober confirmed 'Fix got released with n8n@1.107.0'.

The problem

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 YOURHOST. I’ve tried updating

The verified fix

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. 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.

Evidence

In gh:n8n-io/n8n#15246 (https://github.com/n8n-io/n8n/issues/15246), someone reported: 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 YOURHOST. I’ve tried updating The verified resolution from the thread: 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. 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.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_RRoqR9YrJpzCSEXPz_oebQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Issue with configuring Hugging Face credentials for local n8n <span>— Vectle</span></a>