Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inference API returning Unable to execute HTTP request: event executor terminated #117916

Open
jeffvestal opened this issue Dec 3, 2024 · 4 comments
Labels
>bug Feature:GenAI Features around GenAI :ml Machine learning Team:ML Meta label for the ML team

Comments

@jeffvestal
Copy link

Elasticsearch Version

serverless

Installed Plugins

No response

Java Version

bundled

OS Version

serverless

Problem Description

Getting error

{
  "error": {
    "root_cause": [
      {
        "type": "exception",
        "reason": "Amazon Bedrock converse call failed"
      }
    ],
    "type": "exception",
    "reason": "Failed to send request from inference entity id [bedrock_cohere-cmd-r-plus_completion]",
    "caused_by": {
      "type": "exception",
      "reason": "org.elasticsearch.ElasticsearchException: Amazon Bedrock converse call failed",
      "caused_by": {
        "type": "exception",
        "reason": "Amazon Bedrock converse call failed",
        "caused_by": {
          "type": "sdk_client_exception",
          "reason": "Unable to execute HTTP request: event executor terminated",
          "caused_by": {
            "type": "rejected_execution_exception",
            "reason": "event executor terminated"
          }
        }
      }
    }
  },
  "status": 500
}

Steps to Reproduce

## Using Bedrock Service - Cohere Command R+ model
PUT _inference/completion/bedrock_cohere-cmd-r-plus_completion
{
    "service": "amazonbedrock",
    "service_settings": {
        "access_key": "${bedrock_access_key}",
        "secret_key": "${bedrock_secret_key}",
        "region": "us-east-1",
        "provider": "cohere",
        "model": "cohere.command-r-plus-v1:0"
    }
}

## Test inference api - streaming
POST _inference/completion/bedrock_cohere-cmd-r-plus_completion/
{
  "input": "How many male malard ducks fit in an american football field?"
}

Logs (if relevant)

No response

@jeffvestal jeffvestal added :SearchOrg/Inference Label for the Search Inference team >bug needs:triage Requires assignment of a team area label Team:ML Meta label for the ML team labels Dec 3, 2024
@elasticsearchmachine elasticsearchmachine added Team:SearchOrg Meta label for the Search Org (Enterprise Search) Team:Search - Inference and removed Team:ML Meta label for the ML team needs:triage Requires assignment of a team area label labels Dec 3, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-inference-team (Team:Search - Inference)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-eng (Team:SearchOrg)

@jeffvestal
Copy link
Author

Also, if I wait 5 minutes I get the error again

{
  "error": {
    "root_cause": [
      {
        "type": "exception",
        "reason": "Amazon Bedrock converse call failed"
      }
    ],
    "type": "exception",
    "reason": "Failed to send request from inference entity id [bedrock_cohere-cmd-r-plus_completion]",
    "caused_by": {
      "type": "exception",
      "reason": "org.elasticsearch.ElasticsearchException: Amazon Bedrock converse call failed",
      "caused_by": {
        "type": "exception",
        "reason": "Amazon Bedrock converse call failed",
        "caused_by": {
          "type": "sdk_client_exception",
          "reason": "Unable to execute HTTP request: event executor terminated",
          "caused_by": {
            "type": "rejected_execution_exception",
            "reason": "event executor terminated"
          }
        }
      }
    }
  },
  "status": 500
}

@jonathan-buttner jonathan-buttner added :ml Machine learning Team:ML Meta label for the ML team Feature:GenAI Features around GenAI and removed Team:SearchOrg Meta label for the Search Org (Enterprise Search) :SearchOrg/Inference Label for the Search Inference team Team:Search - Inference labels Dec 3, 2024
@elasticsearchmachine
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug Feature:GenAI Features around GenAI :ml Machine learning Team:ML Meta label for the ML team
Projects
None yet
Development

No branches or pull requests

3 participants