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.
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
從 github-api/dist/components/Requestable.js:238 開始,重現對已刪除 gist 的請求。檢查缺少回應時的處理方式,然後驗證該請求會回報適當的錯誤,而不是產生所示的 TypeError 和未處理的拒絕。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- api
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100