{"record":{"id":"34c03e04176e8ea0","repo":"cube-js/cube","slug":"does-not-work-for-standalone-mode-yet","errorCode":null,"errorMessage":"Does not work for standalone mode yet","messagePattern":"Does not work for standalone mode yet","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"rust/cubesql/cubesql/src/transport/service.rs","lineNumber":413,"sourceCode":"        };\n        let response =\n            cube_api::load_v1(&self.get_client_config_for_ctx(ctx), Some(request)).await?;\n\n        convert_transport_response(response, schema, member_fields)\n    }\n\n    async fn load_stream(\n        &self,\n        _span_id: Option<Arc<SpanId>>,\n        _query: TransportLoadRequestQuery,\n        _sql_query: Option<SqlQuery>,\n        _ctx: AuthContextRef,\n        _meta_fields: LoadRequestMeta,\n        _schema: SchemaRef,\n        _member_fields: Vec<MemberField>,\n        _throw_continue_wait: bool,\n    ) -> Result<CubeStreamReceiver, CubeError> {\n        panic!(\"Does not work for standalone mode yet\");\n    }\n\n    async fn can_switch_user_for_session(\n        &self,\n        _ctx: AuthContextRef,\n        _to_user: String,\n    ) -> Result<bool, CubeError> {\n        panic!(\"Does not work for standalone mode yet\");\n    }\n\n    async fn log_load_state(\n        &self,\n        span_id: Option<Arc<SpanId>>,\n        ctx: AuthContextRef,\n        meta_fields: LoadRequestMeta,\n        event: String,\n        properties: serde_json::Value,\n    ) -> Result<(), CubeError> {","sourceCodeStart":395,"sourceCodeEnd":431,"githubUrl":"https://github.com/cube-js/cube/blob/7d981676b36392fec34088b9afab6bdcad40207c/rust/cubesql/cubesql/src/transport/service.rs#L395-L431","documentation":"The standalone-mode TransportService implementation stubs load_stream; it is not implemented because standalone CubeSQL cannot serve load requests without an attached Cube deployment. Calling it unconditionally panics with 'Does not work for standalone mode yet'.","triggerScenarios":"Issuing a load/query request through the transport (e.g. via the meta transport / SQL interface) against a CubeSQL instance running in standalone mode where load_stream was never wired to a real backend.","commonSituations":"Running the standalone binary instead of the meta-transport-connected service; experiments with direct load paths before configuring the Cube backend; missing transport wiring at startup.","solutions":["Run CubeSQL in the mode connected to a Cube backend (meta transport) rather than standalone","Configure the transport service implementation that actually implements load_stream","Do not send load/query traffic to the standalone-mode service; use it only for supported paths"],"exampleFix":"// before\n# standalone run\n./cubesql standalone --port 15432\n// after\nCUBESQL_CUBE_URL=http://cube:4000 CUBESQL_CUBE_TOKEN=<token> ./cubesql","handlingStrategy":"fallback","validationCode":"// detect standalone mode before sending load traffic\nfn is_standalone_transport(svc: &dyn TransportService) -> bool {\n    svc.mode() == TransportMode::Standalone\n}\nif is_standalone_transport(&service) {\n    return Err(\"load requests unsupported in standalone mode\".into());\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Only run standalone mode for non-load workloads (planning/metadata experiments)","Always configure the meta transport connection to a Cube backend for query traffic","Route load workloads to a deployment mode that implements load_stream"],"tags":["rust","standalone-mode","unimplemented","panic"],"backgroundTag":"feature-not-implemented","analyzedSha":"7d981676b36392fec34088b9afab6bdcad40207c","analyzedAt":"2026-09-02T03:45:10.400Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}