handle basic request errors or update README with a demonstration
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- api
调研方向
从 fetchEventSource 入口点开始检查 README,并使用报告中向不存在路径发起的请求作为复现方式。确定是否应通过现有回调公开 HTTP 错误状态详情,或通过演示进行文档说明;对于 404、401 和 400 响应,所选择的行为明确后即视为完成。
由索引模型根据 Issue 内容生成。
描述
an error is seen in the browser tools using the below call TypeError: Error in body stream
await new fetchEventSource( `${endpointUrl}/path-does-not-exist`, {
onerror ( err ) {
console.log( 'error', err );
},
onclose ( ev ) {
console.log( 'close', ev );
}
});
How does one get error details, such as a response code 404, 401 or 400? Thank you :)
- 主要语言
- TypeScript
- 星标
- 2.9k
- 派生
- 197
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Azure/fetch-event-source 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 28/100
Azure/fetch-event-source#102 ·
-
难度 3/5 1-2 天 新手友好度 25/100
Azure/fetch-event-source#101 · 3 条评论 ·
-
When aborting the event source using abort controller, no callbacks (onError / onClose) are fired未关闭
难度 3/5 1-2 天 新手友好度 48/100
Azure/fetch-event-source#100 · 1 条评论 · 5 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
Azure/fetch-event-source#99 ·
-
难度 3/5 1-2 天 新手友好度 35/100
Azure/fetch-event-source#98 · 9 个 reaction ·
查看 Azure/fetch-event-source 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
ready-for-agent
难度 2/5 1-3 小时 新手友好度 72/100
LucasSantana-Dev/Lucky#2951 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
danielmiessler/LifeOS#2567 ·
维护者通常 9 天内回复
-
refactor(react-pi): classify base64 images with core's parseBase64可能已有人在做 @jimmyallinai 今天认领。 未关闭maintenance
难度 2/5 1-3 小时 新手友好度 62/100
assistant-ui/assistant-ui#10293 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
brijeshb42/monaco-vim#175 ·