HttpInputParameters.readTimeOut typed as string — server expects integer (ms)
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 91/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 冷清
- 技术栈
- typescript
- 领域
- api
调研方向
从 src/open-api/types.ts:156 开始,将 readTimeOut 与上一行中类型定义正确的 connectionTimeOut 字段进行比较。修改声明,使其接受数值型毫秒值,然后验证 TypeScript 检查通过,并确认公共类型与服务器的 Integer 字段一致。
由索引模型根据 Issue 内容生成。
描述
Summary
HttpInputParameters.readTimeOut is typed as string in src/open-api/types.ts:156.
The server's HttpTask.Input.readTimeOut is Integer (milliseconds). The sibling field
connectionTimeOut is correctly typed as number. The inconsistency is a bug.
Server baseline
Conductor 3.32.0-rc.9
Evidence
Static:
// src/open-api/types.ts:155-156
connectionTimeOut?: number; // ✓ correct
readTimeOut?: string; // ✗ should be number
Server:
// http-task/.../HttpTask.java:275
private Integer readTimeOut = 3000;
Live (2026-07-16): Server accepts both readTimeOut: 3000 (integer) and
readTimeOut: "3000" (string) due to Jackson coercion. However, the TypeScript type
is still wrong — passing a number for readTimeOut is a compile-time error with the
current type definition.
Impact
TypeScript users who pass readTimeOut: 5000 (the natural form) get a type error and
must write readTimeOut: "5000" (string), which is semantically confusing and diverges
from connectionTimeOut: 5000 (number).
Proposed fix
// src/open-api/types.ts:156
readTimeOut?: number; // was: string
Related
Discovered during systematic SDK audit against Conductor OSS 3.32.0-rc.9.
- 主要语言
- TypeScript
- 星标
- 58
- 派生
- 20
- 平均合并
- 6 天 5 小时
- 30 天内合并 PR
- 3
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
conductor-oss/javascript-sdk 的其他 Issue
-
bug documentation good first issue
难度 2/5 1-3 小时 新手友好度 82/100
conductor-oss/javascript-sdk#173 ·
-
bug
难度 1/5 1 小时以内 新手友好度 88/100
conductor-oss/javascript-sdk#140 ·
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
conductor-oss/javascript-sdk#139 ·
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
conductor-oss/javascript-sdk#137 ·
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
conductor-oss/javascript-sdk#136 ·
查看 conductor-oss/javascript-sdk 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
automated issue report
难度 1/5 1 小时以内 新手友好度 68/100
-
documentation
难度 1/5 1 小时以内 新手友好度 92/100
github/copilot-sdk#2804 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
drizzle-team/drizzle-orm#6418 ·
维护者通常 4 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
diegosouzapw/OmniRoute#15307 · 1 条评论 ·
维护者通常 2 天内回复