BerriAI/litellm · error · ValueError

Error parsing Manus file response: {e}

Error message

Error parsing Manus file response: {e}

What it means

Error "Error parsing Manus file response: {e}" thrown in BerriAI/litellm.

Source

Thrown at litellm/llms/manus/files/transformation.py:283

                    )
                except (ValueError, TypeError):
                    created_at = int(time.time())
            else:
                created_at = int(time.time())

            return OpenAIFileObject(
                id=response_json.get("id", ""),
                bytes=response_json.get("bytes", 0),
                created_at=created_at,
                filename=response_json.get("filename", ""),
                object="file",
                purpose=response_json.get("purpose", "assistants"),
                status="uploaded",  # After successful upload, status is uploaded
                status_details=response_json.get("status_details"),
            )
        except Exception as e:
            verbose_logger.exception("Error parsing Manus file response: %s", e)
            raise ValueError(f"Error parsing Manus file response: {e}")

    def transform_retrieve_file_request(
        self,
        file_id: str,
        optional_params: dict,
        litellm_params: dict,
    ) -> tuple[str, dict]:
        """Get URL and params for retrieving a file."""
        api_base: Final = self.get_complete_url(
            api_base=litellm_params.get("api_base"),
            api_key=litellm_params.get("api_key"),
            model="",
            optional_params=optional_params,
            litellm_params=litellm_params,
        )
        encoded_file_id: Final = encode_url_path_segment(file_id, field_name="file_id")
        return f"{api_base}/{encoded_file_id}", {}

View on GitHub (pinned to 6c2dcb801b)

Solutions

  1. Check the Manus file API response format; see the wrapped exception.

When it happens

Trigger: Thrown at litellm/llms/manus/files/transformation.py:283 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/98b342a5b40661e2. Report an issue: GitHub.