{"record":{"id":"1bf183f594719d4c","repo":"BerriAI/litellm","slug":"expected-expected-got-actual","errorCode":null,"errorMessage":"expected {expected}, got {actual}","messagePattern":"expected (.+?), got (.+?)","errorType":"exception","errorClass":"CoreError","httpStatus":null,"severity":"error","filePath":"litellm-rust/crates/core/src/error.rs","lineNumber":7,"sourceCode":"use thiserror::Error;\n\npub type CoreResult<T> = Result<T, CoreError>;\n\n#[derive(Debug, Error, PartialEq, Eq)]\npub enum CoreError {\n    #[error(\"expected {expected}, got {actual}\")]\n    InvalidType {\n        expected: &'static str,\n        actual: &'static str,\n    },\n    #[error(\"missing required field: {0}\")]\n    MissingField(&'static str),\n    #[error(\"invalid response: {0}\")]\n    InvalidResponse(String),\n    #[error(\"invalid provider: {0}\")]\n    InvalidProvider(String),\n    #[error(\"invalid request: {0}\")]\n    InvalidRequest(String),\n    #[error(\"{0}\")]\n    Auth(String),\n    #[error(\"upstream request failed with status {status}: {body}\")]\n    Http { status: u16, body: String },\n    #[error(\"upstream network error: {0}\")]\n    Network(String),","sourceCodeStart":1,"sourceCodeEnd":25,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm-rust/crates/core/src/error.rs#L1-L25","documentation":"Error \"expected {expected}, got {actual}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm-rust/crates/core/src/error.rs:7 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the input so the actual value matches the expected one ({expected}); see the error context for which field mismatched."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}