{"record":{"id":"64e7ff4c373a97bd","repo":"BerriAI/litellm","slug":"e","errorCode":null,"errorMessage":"{e}","messagePattern":"\\{e\\}","errorType":"http","errorClass":"AnthropicError","httpStatus":500,"severity":"error","filePath":"litellm/llms/anthropic/chat/handler.py","lineNumber":105,"sourceCode":"            stream=True,\n            timeout=timeout,\n            logging_obj=logging_obj,\n        )\n    except httpx.HTTPStatusError as e:\n        error_headers = getattr(e, \"headers\", None)\n        error_response: Final = getattr(e, \"response\", None)\n        if error_headers is None and error_response:\n            error_headers = getattr(error_response, \"headers\", None)\n        raise AnthropicError(\n            status_code=e.response.status_code,\n            message=await e.response.aread(),\n            headers=error_headers,\n        )\n    except Exception as e:\n        for exception in litellm.LITELLM_EXCEPTION_TYPES:\n            if isinstance(e, exception):\n                raise e\n        raise AnthropicError(status_code=500, message=str(e))\n\n    completion_stream: Final = ModelResponseIterator(\n        streaming_response=response.aiter_lines(),\n        sync_stream=False,\n        json_mode=json_mode,\n        speed=speed,\n        tool_name_reverse_map=tool_name_reverse_map,\n    )\n\n    # LOGGING\n    logging_obj.post_call(\n        input=messages,\n        api_key=\"\",\n        original_response=completion_stream,  # Pass the completion stream for logging\n        additional_args={\"complete_input_dict\": data},\n    )\n\n    return completion_stream, response.headers","sourceCodeStart":87,"sourceCodeEnd":123,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/llms/anthropic/chat/handler.py#L87-L123","documentation":"Error \"{e}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/anthropic/chat/handler.py:105 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped exception for the Anthropic call failure."],"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-15T17:31:12.345Z"}