{"record":{"id":"9de9fb0df91073cd","repo":"cube-js/cube","slug":"call-error","errorCode":null,"errorMessage":"Call error: {}","messagePattern":"Call error: (.+?)","errorType":"exception","errorClass":"minijinja::Error","httpStatus":null,"severity":"error","filePath":"packages/cubejs-backend-native/src/template/mj_value/python.rs","lineNumber":269,"sourceCode":"            mj::Error::new(\n                mj::ErrorKind::EvalBlock,\n                format!(\"Python runtime error: {}\", err),\n            )\n        })?;\n\n        let call_future =\n            Python::with_gil(|py| py_runtime.call_async(self.inner.clone_ref(py), arguments));\n\n        let tokio = tokio_runtime().map_err(|err| {\n            mj::Error::new(\n                mj::ErrorKind::EvalBlock,\n                format!(\"Tokio runtime error: {}\", err),\n            )\n        })?;\n\n        match tokio.block_on(call_future) {\n            Ok(r) => Ok(to_minijinja_value(r)),\n            Err(err) => Err(mj::Error::new(\n                mj::ErrorKind::EvalBlock,\n                format!(\"Call error: {}\", err),\n            )),\n        }\n    }\n}\n\nimpl StructObject for JinjaPythonFunction {\n    fn get_field(&self, _name: &str) -> Option<Value> {\n        None\n    }\n}\n","sourceCodeStart":251,"sourceCodeEnd":282,"githubUrl":"https://github.com/cube-js/cube/blob/7d981676b36392fec34088b9afab6bdcad40207c/packages/cubejs-backend-native/src/template/mj_value/python.rs#L251-L282","documentation":"The Python function was invoked successfully up to the await, but the async call itself returned an error from tokio.block_on — the Python coroutine raised, timed out, or panicked. The original error text follows the colon and identifies the failing Python code.","triggerScenarios":"Thrown at packages/cubejs-backend-native/src/template/mj_value/python.rs:269 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the wrapped error to locate the failing Python coroutine","Fix the Python function's logic, arguments, or missing dependencies","Guard long-running Python work with appropriate timeouts"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7d981676b36392fec34088b9afab6bdcad40207c","analyzedAt":"2026-09-02T03:45:10.400Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}