{"record":{"id":"29e0c5c665afc66c","repo":"apache/flink","slug":"invalid-encoding-in-node","errorCode":null,"errorMessage":"Invalid encoding '{}' in node: {}","messagePattern":"Invalid encoding '(.+?)' in node: (.+?)","errorType":"validation","errorClass":"java.lang.IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/JsonRowSchemaConverter.java","lineNumber":345,"sourceCode":"    }\n\n    private static TypeInformation<?> convertStringEncoding(String location, JsonNode node) {\n        if (!node.isTextual()) {\n            throw new IllegalArgumentException(\n                    \"Invalid '\" + CONTENT_ENCODING + \"' property in node: \" + location);\n        }\n\n        // \"If the instance value is a string, this property defines that the string SHOULD\n        // be interpreted as binary data and decoded using the encoding named by this property.\"\n\n        switch (node.asText()) {\n            case CONTENT_ENCODING_BASE64:\n                return Types.PRIMITIVE_ARRAY(Types.BYTE);\n            default:\n                // we fail hard here:\n                // this gives us the chance to support more encodings in the future without problems\n                // of backwards compatibility\n                throw new IllegalArgumentException(\n                        \"Invalid encoding '\" + node.asText() + \"' in node: \" + location);\n        }\n    }\n\n    private static JsonNode resolveReference(String ref, JsonNode origin, JsonNode root) {\n        if (!ref.startsWith(\"#\")) {\n            throw new IllegalArgumentException(\n                    \"Only JSON schemes with simple references \"\n                            + \"(one indirection in the same document) are supported yet. But was: \"\n                            + ref);\n        }\n        final String path = ref.substring(1);\n        final JsonNode foundNode = root.at(path);\n        if (foundNode.isMissingNode()) {\n            throw new IllegalArgumentException(\"Could not find reference: \" + ref);\n        }\n        // prevent obvious cyclic references\n        if (foundNode == origin) {","sourceCodeStart":327,"sourceCodeEnd":363,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/JsonRowSchemaConverter.java#L327-L363","documentation":"Error \"Invalid encoding '{}' in node: {}\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: Invalid encoding 'the reported value' in node: the reported value.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Invalid encoding 'the reported value' in node: the reported value.","solutions":["Address the cause reported by the error message: Invalid encoding 'the reported value' in node: the reported value","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"Invalid encoding 'the reported value' in node: the reported value\") and rerun the job or command.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2f3c205e9266cb30240eb7f4fdab15cad629a70f","analyzedAt":"2026-08-14T08:48:24.518Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}