github-tools / github-tools/github
Error when requesting deleted gist
- 主要语言
- JavaScript
- 星标
- 3.8k
- 派生
- 809
- PR 合并指标
- 30 天内没有已合并 PR
描述
```
(node:1653) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'data' of undefined
at MY_PROJECT/node_modules/github-api/dist/components/Requestable.js:238:29
at
at process._tickCallback (internal/process/next_tick.js:182:7)
(node:1653) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:1653) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
```
贡献指南
这个仓库没有索引到贡献指南
调研方向
Start at github-api/dist/components/Requestable.js:238 and reproduce the request for a deleted gist. Inspect how the missing response is handled, then verify that the request reports an appropriate error instead of producing the shown TypeError and unhandled rejection.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100