# Embedding endpoint returning \[None\] embeddings

**URL:** <https://discuss.huggingface.co/t/embedding-endpoint-returning-none-embeddings/110159>\
**Category:** Inference Endpoints on the Hub\
**Created:** [October 4, 2024, 7:58pm UTC](https://discuss.huggingface.co/t/embedding-endpoint-returning-none-embeddings/110159 "2024-10-04T19:58:03Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [March 12, 2025, 4:48pm UTC](https://discuss.huggingface.co/t/embedding-endpoint-returning-none-embeddings/110159/4 "2025-03-12T16:48:49Z")

</div>

There is a possibility that it may be a bug in Sentence Transformer or TGI or server config.

> [@Unable to access public model - status 401](https://discuss.huggingface.co/t/unable-to-access-public-model-status-401/144806):
>
> i build .net code to access sentence-transformers/all-MiniLM-L6-v2. while running, i get the following error: {StatusCode: 401, Unauthorized] although token is right , it has read permission using (var client = new HttpClient()) { client.DefaultRequestHeaders.Add(“Authorization”, “hf\_DimrceBJNUZfMjpICMAQfXzNkrioZErQVI”); var requestContent = new { inputs = new string[] { text1, text2 } }; var response = await client.PostAsync("https://api-inference.huggingface.co/models/sentence-tran…

---

_[View the full topic](https://discuss.huggingface.co/t/embedding-endpoint-returning-none-embeddings/110159)._
