elastic / elasticsearch

Free and Open, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.49k stars 24.6k forks source link

[Inference API] Hugging Face returns `Bad Request: Invalid state` error message #112033

Open maxhniebergall opened 3 weeks ago

maxhniebergall commented 3 weeks ago

Elasticsearch Version

serverless

Installed Plugins

No response

Java Version

bundled

OS Version

N/A

Problem Description

When trying to create an inference endpoint using Hugging Face Inference Endpoints service, if the HF inference endpoint is paused, the call fails with this message BadRequestError: BadRequestError(400, 'status_exception', 'Received an unsuccessful status code for request from inference entity id [my_hf_endpoint_object] status [400]. Error message: [Bad Request: Invalid state]').

This is technically correct, but might be confusing. The solution is to Resume the endpoint in hugging face.

Steps to Reproduce

Attempt to put an endpoint which is paused in huggingface.

Logs (if relevant)

No response

elasticsearchmachine commented 3 weeks ago

Pinging @elastic/ml-core (Team:ML)