{"record":{"id":"df1d287c34956500","repo":"influxdata/influxdb","slug":"deserializing-show-tables-0","errorCode":null,"errorMessage":"deserializing show tables: {0}","messagePattern":"deserializing show tables: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"influxdb3/src/commands/show/system.rs","lineNumber":15,"sourceCode":"use std::path::PathBuf;\n\nuse clap::Parser;\nuse influxdb3_client::Client;\nuse secrecy::ExposeSecret;\nuse serde::Deserialize;\n\nuse super::super::common::{Format, InfluxDb3Config};\n\n#[derive(Debug, thiserror::Error)]\npub(crate) enum Error {\n    #[error(\"client error: {0}\")]\n    InfluxDB3Client(#[from] influxdb3_client::Error),\n\n    #[error(\"deserializing show tables: {0}\")]\n    DeserializingShowTables(#[source] serde_json::Error),\n\n    #[error(\"system table '{0}' not found: {1}\")]\n    SystemTableNotFound(String, SystemTableNotFound),\n\n    #[error(\"parquet format is not supported for this command\")]\n    ParquetFormatNotSupported,\n}\n\npub(super) type Result<T> = std::result::Result<T, Error>;\n\n#[derive(Debug, Parser)]\n#[clap(visible_alias = \"s\", trailing_var_arg = true)]\npub struct SystemConfig {\n    #[clap(subcommand)]\n    subcommand: SubCommand,\n\n    /// Common InfluxDB 3 Core config","sourceCodeStart":1,"sourceCodeEnd":33,"githubUrl":"https://github.com/influxdata/influxdb/blob/06200ef96ba82c5f6727e5038a83af8e722c6875/influxdb3/src/commands/show/system.rs#L1-L33","documentation":"Variant of the `influxdb3 show system` command's Error enum raised when the JSON returned by the server for a system-table query cannot be deserialized into the expected typed structure; the serde_json::Error is attached as #[source].","triggerScenarios":"`influxdb3 show system` receives a 2xx response whose body is not the expected JSON schema — e.g. server/client version mismatch, a proxy returning HTML, or an error body parsed as data.","commonSituations":"Older CLI against newer server (or vice versa) where system table columns changed, a reverse proxy intercepting requests, or the endpoint returning an error message instead of the table payload.","solutions":["Check the chained serde_json::Error to see which field/type failed to deserialize.","Ensure CLI and server versions match; upgrade one or both.","Bypass proxies and confirm the raw endpoint response with curl to see the actual body.","Retry the command; if consistent across matching versions, file an issue."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"null","typeGuard":"null","tryCatchPattern":"match result {\n    Err(Error::DeserializingShowTables(src)) => {\n        eprintln!(\"unexpected system-table JSON: {src}; check CLI/server version match\");\n    }\n    ...\n}","preventionTips":["Keep influxdb3 CLI and server versions aligned.","Access the server directly rather than through HTML-returning proxies.","Inspect raw endpoint responses when upgrading between versions."],"tags":["json","serialization","cli","version-mismatch"],"backgroundTag":"json-unmarshal-failed","analyzedSha":"06200ef96ba82c5f6727e5038a83af8e722c6875","analyzedAt":"2026-09-19T12:55:30.003Z","contentChangedAt":"2026-09-19T12:55:30.003Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}