{"record":{"id":"98b342a5b40661e2","repo":"BerriAI/litellm","slug":"error-parsing-manus-file-response-e","errorCode":null,"errorMessage":"Error parsing Manus file response: {e}","messagePattern":"Error parsing Manus file response: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/llms/manus/files/transformation.py","lineNumber":283,"sourceCode":"                    )\n                except (ValueError, TypeError):\n                    created_at = int(time.time())\n            else:\n                created_at = int(time.time())\n\n            return OpenAIFileObject(\n                id=response_json.get(\"id\", \"\"),\n                bytes=response_json.get(\"bytes\", 0),\n                created_at=created_at,\n                filename=response_json.get(\"filename\", \"\"),\n                object=\"file\",\n                purpose=response_json.get(\"purpose\", \"assistants\"),\n                status=\"uploaded\",  # After successful upload, status is uploaded\n                status_details=response_json.get(\"status_details\"),\n            )\n        except Exception as e:\n            verbose_logger.exception(\"Error parsing Manus file response: %s\", e)\n            raise ValueError(f\"Error parsing Manus file response: {e}\")\n\n    def transform_retrieve_file_request(\n        self,\n        file_id: str,\n        optional_params: dict,\n        litellm_params: dict,\n    ) -> tuple[str, dict]:\n        \"\"\"Get URL and params for retrieving a file.\"\"\"\n        api_base: Final = self.get_complete_url(\n            api_base=litellm_params.get(\"api_base\"),\n            api_key=litellm_params.get(\"api_key\"),\n            model=\"\",\n            optional_params=optional_params,\n            litellm_params=litellm_params,\n        )\n        encoded_file_id: Final = encode_url_path_segment(file_id, field_name=\"file_id\")\n        return f\"{api_base}/{encoded_file_id}\", {}\n","sourceCodeStart":265,"sourceCodeEnd":301,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/llms/manus/files/transformation.py#L265-L301","documentation":"Error \"Error parsing Manus file response: {e}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/manus/files/transformation.py:283 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the Manus file API response format; see the wrapped exception."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d","analyzedAt":"2026-08-15T07:12:03.035Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}