{"record":{"id":"504818e7b564364f","repo":"hasura/graphql-engine","slug":"compatibility-date-0-is-in-the-future","errorCode":null,"errorMessage":"compatibility date {0} is in the future","messagePattern":"compatibility date (.+?) is in the future","errorType":"validation","errorClass":"CompatibilityError","httpStatus":null,"severity":"error","filePath":"v3/crates/compatibility/src/config.rs","lineNumber":36,"sourceCode":"/// The compatibility configuration of the Hasura metadata.\npub struct CompatibilityConfigV2 {\n    /// Any backwards incompatible changes made to Hasura DDN after this date won't impact the metadata.\n    pub date: CompatibilityDate,\n    // TODO: add flags.\n}\n\n#[derive(Debug, PartialEq, thiserror::Error)]\npub enum CompatibilityError {\n    #[error(\"no compatibility config found\")]\n    NoCompatibilityConfigFound,\n    #[error(\"duplicate compatibility config found\")]\n    DuplicateCompatibilityConfig,\n    #[error(\"compatibility date {specified} is too old, oldest supported date is {oldest}\")]\n    DateTooOld {\n        specified: CompatibilityDate,\n        oldest: CompatibilityDate,\n    },\n    #[error(\"compatibility date {0} is in the future\")]\n    DateInTheFuture(CompatibilityDate),\n}\n","sourceCodeStart":18,"sourceCodeEnd":39,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/v3/crates/compatibility/src/config.rs#L18-L39","documentation":"The specified compatibility date is in the future relative to the engine's current date; no config can exist for dates beyond the shipped entries.","triggerScenarios":"A project compatibility date later than today / later than the newest bundled compatibility entry.","commonSituations":"Typos like 2033 instead of 2023; system clock set incorrectly on the build machine; project created with a newer engine and run against an older one.","solutions":["Correct the date if it's a typo (compare {0} with today)","Check the machine clock if the date looks reasonable","Upgrade the engine if the project legitimately targets a newer release"],"exampleFix":"// before\ncompatibility_date = \"3023-01-01\"\n// after\ncompatibility_date = \"2025-01-01\"","handlingStrategy":"validation","validationCode":"if (specifiedDate > today()) throw new Error('compatibility date in the future');","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Validate the date against the system clock at startup","Use date pickers constrained to <= today in project tooling"],"tags":["configuration","compatibility","versioning"],"backgroundTag":"invalid-compatibility-date","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}