{"record":{"id":"8bf2b711ae0a1ce6","repo":"grafana/k6","slug":"unknown-cipher-suite-s","errorCode":null,"errorMessage":"unknown cipher suite '%s'","messagePattern":"unknown cipher suite '(.+?)'","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/options.go","lineNumber":110,"sourceCode":"\t\t}\n\t}\n\n\treturn json.Marshal(suiteNames)\n}\n\n// UnmarshalJSON implements the json.Unmarshaler interface\nfunc (s *TLSCipherSuites) UnmarshalJSON(data []byte) error {\n\tvar suiteNames []string\n\tif err := StrictJSONUnmarshal(data, &suiteNames); err != nil {\n\t\treturn err\n\t}\n\n\tvar suiteIDs []uint16\n\tfor _, name := range suiteNames {\n\t\tif suiteID, ok := SupportedTLSCipherSuites[name]; ok {\n\t\t\tsuiteIDs = append(suiteIDs, suiteID)\n\t\t} else {\n\t\t\treturn fmt.Errorf(\"unknown cipher suite '%s'\", name)\n\t\t}\n\t}\n\n\t*s = suiteIDs\n\n\treturn nil\n}\n\n// TLSAuthFields for TLSAuth. Unmarshalling hack.\ntype TLSAuthFields struct {\n\t// Certificate and key as a PEM-encoded string, including \"-----BEGIN CERTIFICATE-----\".\n\tCert     string      `json:\"cert\"`\n\tKey      string      `json:\"key\"`\n\tPassword null.String `json:\"password\"`\n\n\t// Domains to present the certificate to. May contain wildcards, eg. \"*.example.com\".\n\tDomains []string `json:\"domains\"`\n}","sourceCodeStart":92,"sourceCodeEnd":128,"githubUrl":"https://github.com/grafana/k6/blob/01ffac6f245854c1b8adc6a69857c76a15f90022/lib/options.go#L92-L128","documentation":"Raised by TLSCipherSuites.UnmarshalJSON when parsing the ciphers option: a cipher suite name in the JSON is not present in the SupportedTLSCipherSuites map, so it cannot be mapped to a numeric ID.","triggerScenarios":"Thrown at lib/options.go:110 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use exact cipher suite names such as TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256","Verify the name against Go's crypto/tls constant names"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ffac6f245854c1b8adc6a69857c76a15f90022","analyzedAt":"2026-08-18T03:05:52.393Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}