{"record":{"id":"5fa37ac44ab18fdf","repo":"langgenius/dify","slug":"invalid-proxy-port-rawport-expected-an-integ","errorCode":null,"errorMessage":"Invalid proxy port \"${rawPort}\". Expected an integer between 1 and 65535.","messagePattern":"Invalid proxy port \"(.+?)\"\\. Expected an integer between 1 and 65535\\.","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/dev-proxy/src/config.ts","lineNumber":76,"sourceCode":"    const name = rawName ?? ''\n\n    if (!name.startsWith('-')) continue\n\n    if (!isOptionName(name)) throw new Error(`Unsupported dev proxy option \"${name}\".`)\n\n    const key = OPTION_NAME_TO_KEY[name]\n    options[key] = inlineValue ?? requireOptionValue(name, argv[index + 1])\n\n    if (inlineValue === undefined) index += 1\n  }\n\n  return options\n}\n\nconst resolvePort = (rawPort: string | number) => {\n  const port = Number(rawPort)\n  if (!Number.isInteger(port) || port < 1 || port > 65535)\n    throw new Error(`Invalid proxy port \"${rawPort}\". Expected an integer between 1 and 65535.`)\n\n  return port\n}\n\nexport const resolveDevProxyServerOptions = (\n  serverConfig: DevProxyServerConfig = {},\n  cliOptions: DevProxyCliOptions = {},\n): ResolvedDevProxyServerOptions => {\n  const configuredPort = cliOptions.port ?? serverConfig.port ?? DEFAULT_PROXY_PORT\n\n  return {\n    host: cliOptions.host || serverConfig.host || DEFAULT_PROXY_HOST,\n    port: resolvePort(configuredPort),\n  }\n}\n\nconst isRecord = (value: unknown): value is Record<string, unknown> =>\n  typeof value === 'object' && value !== null","sourceCodeStart":58,"sourceCodeEnd":94,"githubUrl":"https://github.com/langgenius/dify/blob/ef8544b173fd6cd7a8e71df2cab576e52bebbfbc/packages/dev-proxy/src/config.ts#L58-L94","documentation":"Error \"Invalid proxy port \"${rawPort}\". Expected an integer between 1 and 65535.\" thrown in langgenius/dify.","triggerScenarios":"Thrown at packages/dev-proxy/src/config.ts:76 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":"ef8544b173fd6cd7a8e71df2cab576e52bebbfbc","analyzedAt":"2026-08-12T05:15:17.394Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}