{"record":{"id":"271466b06a1530fc","repo":"sgl-project/sglang","slug":"asr-max-concurrent-sessions-must-be-positive-go","errorCode":null,"errorMessage":"--asr-max-concurrent-sessions must be positive (got {cfg.asr_max_concurrent_sessions}).","messagePattern":"--asr-max-concurrent-sessions must be positive \\(got (.+?)\\)\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"python/sglang/srt/server_args.py","lineNumber":9559,"sourceCode":"        if cfg.enable_mixed_chunk:\n            logger.warning(\n                \"Mixed chunked prefill is disabled because of using diffusion LLM inference.\"\n            )\n            self._declare(\n                \"_handle_dllm_inference\",\n                enable_mixed_chunk=False,\n            )\n\n    def _handle_asr_validation(self):\n        \"\"\"Validate transcription/ASR-specific server args.\"\"\"\n        cfg = resolving_view(self)\n        if cfg.asr_max_buffer_seconds <= 0:\n            raise ValueError(\n                f\"--asr-max-buffer-seconds must be positive \"\n                f\"(got {cfg.asr_max_buffer_seconds}).\"\n            )\n        if cfg.asr_max_concurrent_sessions <= 0:\n            raise ValueError(\n                f\"--asr-max-concurrent-sessions must be positive \"\n                f\"(got {cfg.asr_max_concurrent_sessions}).\"\n            )\n\n    def _validate_prefill_decode_interval(self):\n        cfg = resolving_view(self)\n        if cfg.prefill_decode_interval < 0:\n            raise ValueError(\"--prefill-decode-interval must be non-negative.\")\n\n    def _handle_other_validations(self):\n        cfg = resolving_view(self)\n        if cfg.default_chat_template_kwargs is not None and not isinstance(\n            cfg.default_chat_template_kwargs, dict\n        ):\n            raise ValueError(\n                \"--default-chat-template-kwargs must decode to a JSON object\"\n            )\n","sourceCodeStart":9541,"sourceCodeEnd":9577,"githubUrl":"https://github.com/sgl-project/sglang/blob/0132848349585cfe6aae51c4941cbae872505f8a/python/sglang/srt/server_args.py#L9541-L9577","documentation":"Raised by _handle_asr_validation when --asr-max-concurrent-sessions is <= 0. It caps concurrent ASR sessions; zero or negative values are invalid and rejected at startup validation.","triggerScenarios":"Launching with --asr-max-concurrent-sessions 0 or negative.","commonSituations":"Setting 0 intending 'unlimited' (not supported); minimal deployments copied from examples with edited values.","solutions":["Set a positive integer, e.g. --asr-max-concurrent-sessions 8","Omit the flag to use the default if unsure"],"exampleFix":"# before\n--asr-max-concurrent-sessions 0\n# after\n--asr-max-concurrent-sessions 8","handlingStrategy":"validation","validationCode":"if args.asr_max_concurrent_sessions is not None:\n    assert args.asr_max_concurrent_sessions > 0, 'asr_max_concurrent_sessions must be > 0'","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Remember 0 does not mean unlimited for this flag; omit it instead","Lint generated configs for non-positive capacity settings"],"tags":["sglang","asr","concurrency","server-args","validation"],"backgroundTag":"config-value-out-of-range","analyzedSha":"0132848349585cfe6aae51c4941cbae872505f8a","analyzedAt":"2026-08-28T05:10:05.995Z","schemaVersion":2},"datasetVersion":"2026-08-28T06:17:29.519Z"}