# Embedding endpoint returning \[None\] embeddings

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fembedding-endpoint-returning-none-embeddings%2F110159%3E%5C
**Category:** Inference Endpoints on the Hub\
**Created:** [October 4, 2024, 7:58pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fembedding-endpoint-returning-none-embeddings%2F110159 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [March 12, 2025, 4:48pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fembedding-endpoint-returning-none-embeddings%2F110159%2F4 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Funable-to-access-public-model-status-401%2F144806)%3A
>
> 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("/static-proxy?url=https%3A%2F%2Fapi-inference.huggingface.co%2Fmodels%2Fsentence-tran%E2%80%A6

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fembedding-endpoint-returning-none-embeddings%2F110159)._
