{"record":{"id":"45b0729ec9adf17d","repo":"apache/seatunnel","slug":"unsupported-auth-type-s-supported-s","errorCode":null,"errorMessage":"Unsupported auth type: %s, supported: %s","messagePattern":"Unsupported auth type: (.+?), supported: (.+?)","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"seatunnel-connectors-v2/connector-edge-socket/src/main/java/org/apache/seatunnel/connectors/seatunnel/edgesocket/config/EdgeSocketAuthType.java","lineNumber":49,"sourceCode":"    private final String value;\n\n    EdgeSocketAuthType(String value) {\n        this.value = value;\n    }\n\n    public static EdgeSocketAuthType from(String authType) {\n        Objects.requireNonNull(authType, \"authType must not be null\");\n        String normalized = authType.trim().toLowerCase(Locale.ROOT);\n        for (EdgeSocketAuthType type : values()) {\n            if (type.getValue().equals(normalized) || type.name().equalsIgnoreCase(normalized)) {\n                return type;\n            }\n        }\n        String supported =\n                Arrays.stream(values())\n                        .map(EdgeSocketAuthType::getValue)\n                        .collect(Collectors.joining(\", \"));\n        throw new IllegalArgumentException(\n                \"Unsupported auth type: \" + authType + \", supported: \" + supported);\n    }\n}\n","sourceCodeStart":31,"sourceCodeEnd":53,"githubUrl":"https://github.com/apache/seatunnel/blob/cf67b549a7a6c35fa0beb12d83c62892427ea919/seatunnel-connectors-v2/connector-edge-socket/src/main/java/org/apache/seatunnel/connectors/seatunnel/edgesocket/config/EdgeSocketAuthType.java#L31-L53","documentation":"EdgeSocketAuthType.from() converts a user-supplied auth config string into the EdgeSocketAuthType enum. When the string does not match any known auth type value, the method throws IllegalArgumentException listing all supported values. This is a fail-fast config validation so a typo never silently disables authentication.","triggerScenarios":"Calling EdgeSocketAuthType.from(authType) with a blank, misspelled, or wrong-cased auth type string from the connector config (e.g. 'basicauth' instead of the defined value).","commonSituations":"Typos in the HOCON/YAML config for the edge-socket source auth option, copying config from another connector whose auth names differ, or an uppercase/case mismatch since matching is typically case-sensitive.","solutions":["Read the 'supported: ...' portion of the message and set the auth config option to exactly one of the listed values.","Check for case or whitespace issues (trim the value, match exact casing).","If migrating from another connector, map the old auth name to the edge-socket supported value."],"exampleFix":"// before\nauth_type = \"basicauth\"\n// after\nauth_type = \"basic\"","handlingStrategy":"validation","validationCode":"Set<String> valid = Arrays.stream(EdgeSocketAuthType.values()).map(EdgeSocketAuthType::getValue).collect(Collectors.toSet());\nif (authType == null || !valid.contains(authType.trim())) {\n    throw new IllegalArgumentException(\"auth_type must be one of \" + valid);\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Copy auth values directly from the connector documentation, not from memory.","Validate the edge-socket config with a startup dry run before deploying.","Keep auth type strings lowercase and free of whitespace in config files."],"tags":["config","enum","connector-edge-socket"],"backgroundTag":"invalid-enum-value","analyzedSha":"cf67b549a7a6c35fa0beb12d83c62892427ea919","analyzedAt":"2026-09-10T21:44:55.265Z","contentChangedAt":"2026-09-10T21:44:55.265Z","schemaVersion":2},"datasetVersion":"2026-09-14T11:17:12.474Z"}