{"record":{"id":"81102b0cc828cc39","repo":"nginx/nginx","slug":"ngx-log-emerg-81102b","errorCode":"NGX_LOG_EMERG","errorMessage":"invalid value \\\"%V\\\" in \\\"%V\\\" directive","messagePattern":"invalid value \\\\\"%V\\\\\" in \\\\\"%V\\\\\" directive","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/http/modules/ngx_http_upstream_keepalive_module.c","lineNumber":601,"sourceCode":"ngx_http_upstream_keepalive(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)\n{\n    ngx_http_upstream_keepalive_srv_conf_t  *kcf = conf;\n\n    ngx_int_t    n;\n    ngx_str_t   *value;\n\n    if (kcf->max_cached != NGX_CONF_UNSET_UINT) {\n        return \"is duplicate\";\n    }\n\n    /* read options */\n\n    value = cf->args->elts;\n\n    n = ngx_atoi(value[1].data, value[1].len);\n\n    if (n == NGX_ERROR) {\n        ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,\n                           \"invalid value \\\"%V\\\" in \\\"%V\\\" directive\",\n                           &value[1], &cmd->name);\n        return NGX_CONF_ERROR;\n    }\n\n    kcf->max_cached = n;\n\n    if (cf->args->nelts == 3) {\n        if (ngx_strcmp(value[2].data, \"local\") == 0) {\n            kcf->local = 1;\n\n        } else {\n            ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,\n                               \"invalid parameter \\\"%V\\\"\", &value[2]);\n            return NGX_CONF_ERROR;\n        }\n    }\n","sourceCodeStart":583,"sourceCodeEnd":619,"githubUrl":"https://github.com/nginx/nginx/blob/3f6f7824d4e2eb1ac37dec76683d525ac0ff521c/src/http/modules/ngx_http_upstream_keepalive_module.c#L583-L619","documentation":"Error \"invalid value \\\"%V\\\" in \\\"%V\\\" directive\" thrown in nginx/nginx.","triggerScenarios":"Thrown at src/http/modules/ngx_http_upstream_keepalive_module.c:601 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3f6f7824d4e2eb1ac37dec76683d525ac0ff521c","analyzedAt":"2026-08-22T03:09:46.447Z","schemaVersion":2},"datasetVersion":"2026-08-22T04:17:13.399Z"}