BerriAI/litellm · error · ValueError

No response data in completed operation

Error message

No response data in completed operation

What it means

Error "No response data in completed operation" thrown in BerriAI/litellm.

Source

Thrown at litellm/llms/gemini/videos/transformation.py:456

        2. Return download URL for the video
        """
        operation_name: Final = extract_original_video_id(video_id)

        status_url: Final = f"{api_base.rstrip('/')}/v1beta/{operation_name}"
        client: Final = litellm.module_level_client
        status_response: Final = client.get(url=status_url, headers=headers)
        status_response.raise_for_status()
        response_data: Final = status_response.json()

        operation_response: Final = GeminiLongRunningOperationResponse(**response_data)

        if not operation_response.done:
            raise ValueError(
                "Video generation is not complete yet. Please check status with video_status() before downloading."
            )

        if not operation_response.response:
            raise ValueError("No response data in completed operation")

        generated_samples: Final = operation_response.response.generateVideoResponse.generatedSamples
        download_url: Final = generated_samples[0].video.uri

        params: Final[dict[str, Any]] = {}

        return download_url, params

    def transform_video_content_response(
        self,
        raw_response: httpx.Response,
        logging_obj: LiteLLMLoggingObj,
    ) -> bytes:
        """
        Transform the Veo video content download response.
        Returns the video bytes directly.
        """
        return raw_response.content

View on GitHub (pinned to 6c2dcb801b)

Solutions

  1. The completed Veo operation had no response data; check the operation in Google Cloud console.

When it happens

Trigger: Thrown at litellm/llms/gemini/videos/transformation.py:456 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of BerriAI/litellm@6c2dcb801b (2026-08-15). Data as JSON: /api/errors/fb9d3577437da732. Report an issue: GitHub.