BerriAI/litellm · error · Exception

Failed to get async invoke status

Error message

Failed to get async invoke status: {response.status_code} - {response.text}

What it means

HTTP failure while polling a Bedrock async embedding invocation: the GET for the invocation ARN status returned a non-200 status code, and the handler surfaces the status and response body of the failed status check.

Solutions

  1. Check the response body for the Bedrock-side error (permissions, job id, throttling).
  2. Verify IAM permissions allow reading async invoke status.
  3. Retry; the job status endpoint can be transiently unavailable.
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at litellm/llms/bedrock/embed/embedding.py:652 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18). Data as JSON: /api/errors/4f97f2ee43bb2e27. Report an issue: GitHub.

Appendix: source

Thrown at litellm/llms/bedrock/embed/embedding.py:652

        response: Final = await client.get(
            url=prepped.url,
            headers=prepped.headers,
        )

        # LOGGING
        if logging_obj is not None:
            logging_obj.post_call(
                input=invocation_arn,
                api_key="",
                original_response=response,
                additional_args={"complete_input_dict": {"invocation_arn": invocation_arn}},
            )

        # Parse response
        if response.status_code == 200:
            return response.json()
        else:
            raise Exception(f"Failed to get async invoke status: {response.status_code} - {response.text}")

View on GitHub (pinned to 77b7c6c40c)