Huggingface embedding 'invalid url'

Describe the problem/error/question

i am using n8n cloud

I’m trying to use the Embeddings HuggingFace Inference node in n8n to generate embeddings. I’ve tested various models, including BAAI/bge-small-en-v1.5, but I’m still encountering an Invalid URL error when executing the node. It seems like there is an issue with the Custom Inference Endpoint configuration or how the node is connecting to the HuggingFace API.


## What is the error message (if any)?

Error message:

  • Invalid URL
    • Error code: ERR_INVALID_URL
    • Execution error
    • Source: Embeddings HuggingFace Inference node

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @Ai_Rod

I was able to get this working with BAAI/bge-small-en-v1.5 so I’m going to assume you’re using the “custom inference endpoint” option to provide a custom URL for huggingface?

Best next step is just to check this custom endpoint URL is correct and reachable. Try using the http node with response headers enabled to see what error codes you get.

1 Like

Thank you Jim for responding, i had moved on to using open ai as i did not understand the obstacles i face. i will circle back to thing and implement your suggest and will let you know if im able to get it to work

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.