{"record":{"id":"28976c887c63a22a","repo":"caddyserver/caddy","slug":"failed-to-get-argon2id-threads-parameter-w","errorCode":null,"errorMessage":"failed to get argon2id threads parameter: %w","messagePattern":"failed to get argon2id threads parameter: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"modules/caddyhttp/caddyauth/command.go","lineNumber":159,"sourceCode":"\n\tvar hash []byte\n\tvar hashString string\n\tswitch algorithm {\n\tcase bcryptName:\n\t\thash, err = BcryptHash{cost: bcryptCost}.Hash(plaintext)\n\t\thashString = string(hash)\n\tcase argon2idName:\n\t\ttime, err := fs.GetUint32(\"argon2id-time\")\n\t\tif err != nil {\n\t\t\treturn caddy.ExitCodeFailedStartup, fmt.Errorf(\"failed to get argon2id time parameter: %w\", err)\n\t\t}\n\t\tmemory, err := fs.GetUint32(\"argon2id-memory\")\n\t\tif err != nil {\n\t\t\treturn caddy.ExitCodeFailedStartup, fmt.Errorf(\"failed to get argon2id memory parameter: %w\", err)\n\t\t}\n\t\tthreads, err := fs.GetUint8(\"argon2id-threads\")\n\t\tif err != nil {\n\t\t\treturn caddy.ExitCodeFailedStartup, fmt.Errorf(\"failed to get argon2id threads parameter: %w\", err)\n\t\t}\n\t\tkeyLen, err := fs.GetUint32(\"argon2id-keylen\")\n\t\tif err != nil {\n\t\t\treturn caddy.ExitCodeFailedStartup, fmt.Errorf(\"failed to get argon2id keylen parameter: %w\", err)\n\t\t}\n\n\t\thash, _ = Argon2idHash{\n\t\t\ttime:    time,\n\t\t\tmemory:  memory,\n\t\t\tthreads: threads,\n\t\t\tkeyLen:  keyLen,\n\t\t}.Hash(plaintext)\n\n\t\thashString = string(hash)\n\tdefault:\n\t\treturn caddy.ExitCodeFailedStartup, fmt.Errorf(\"unrecognized hash algorithm: %s\", algorithm)\n\t}\n\tif err != nil {","sourceCodeStart":141,"sourceCodeEnd":177,"githubUrl":"https://github.com/caddyserver/caddy/blob/50e54ee279aa1e504fe218ca49ab6ae16c100410/modules/caddyhttp/caddyauth/command.go#L141-L177","documentation":"Error \"failed to get argon2id threads parameter: %w\" thrown in caddyserver/caddy.","triggerScenarios":"Thrown at modules/caddyhttp/caddyauth/command.go:159 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a valid integer for the argon2id threads parameter, or omit the flag to use the default."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"50e54ee279aa1e504fe218ca49ab6ae16c100410","analyzedAt":"2026-08-15T09:20:21.641Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}