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