{"record":{"id":"07adad9ecf512b0c","repo":"grafana/k6","slug":"unknown-compression-algorithm-s-supported-algori","errorCode":null,"errorMessage":"unknown compression algorithm %s, supported algorithms are %s","messagePattern":"unknown compression algorithm (.+?), supported algorithms are (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"js/modules/k6/http/request.go","lineNumber":386,"sourceCode":"\t\t\t\tif common.IsNullish(jarV) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\tif v, ok := jarV.Export().(*CookieJar); ok {\n\t\t\t\t\tresult.ActiveJar = v.Jar\n\t\t\t\t}\n\t\t\tcase \"compression\":\n\t\t\t\talgosString := strings.TrimSpace(params.Get(k).ToString().String())\n\t\t\t\tif algosString == \"\" {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\talgos := strings.Split(algosString, \",\")\n\t\t\t\tvar err error\n\t\t\t\tresult.Compressions = make([]httpext.CompressionType, len(algos))\n\t\t\t\tfor index, algo := range algos {\n\t\t\t\t\talgo = strings.TrimSpace(algo)\n\t\t\t\t\tresult.Compressions[index], err = httpext.CompressionTypeString(algo)\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\treturn nil, fmt.Errorf(\"unknown compression algorithm %s, supported algorithms are %s\",\n\t\t\t\t\t\t\talgo, httpext.CompressionTypeValues())\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tcase \"redirects\":\n\t\t\t\tresult.Redirects = null.IntFrom(params.Get(k).ToInteger())\n\t\t\tcase \"tags\":\n\t\t\t\tif err := common.ApplyCustomUserTags(rt, &result.TagsAndMeta, params.Get(k)); err != nil {\n\t\t\t\t\treturn nil, fmt.Errorf(\"invalid HTTP request metric tags: %w\", err)\n\t\t\t\t}\n\t\t\tcase \"auth\":\n\t\t\t\tresult.Auth = params.Get(k).String()\n\t\t\tcase \"timeout\":\n\t\t\t\tt, err := types.GetDurationValue(params.Get(k).Export())\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn nil, fmt.Errorf(\"invalid timeout value: %w\", err)\n\t\t\t\t}\n\t\t\t\tresult.Timeout = t\n\t\t\tcase \"throw\":","sourceCodeStart":368,"sourceCodeEnd":404,"githubUrl":"https://github.com/grafana/k6/blob/8d06114777191d21ef885d05c5f8aa9e1ed838ae/js/modules/k6/http/request.go#L368-L404","documentation":"The 'compression' request option named an algorithm that httpext.CompressionTypeString doesn't recognize. Supported values are listed in the message (gzip, deflate, br/zstd...); the offending algorithm is echoed.","triggerScenarios":"Thrown at js/modules/k6/http/request.go:387 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of the supported algorithms from the message, e.g. compression: 'gzip'","Check for typos and stray whitespace in the algorithm name"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8d06114777191d21ef885d05c5f8aa9e1ed838ae","analyzedAt":"2026-08-18T03:05:52.393Z","contentChangedAt":"2026-08-18T03:05:52.393Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}