all-contributors / all-contributors/cli

all-contributors-cli issues.

オープン
#374 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る
type: bug
主要言語
JavaScript
スター
425
フォーク
149
PR マージ指標
30日以内にマージされた PR はありません

説明

**Describe the bug**
When adding new contributors, a bug occured.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to my project root dir.
2. run `yarn all-contributors add zezhishao code,infra,ideas`
3. See error

**Expected behavior**
The cli raises error:

```js
$ yarn all-contributors add zezhishao code,infra,ideas
yarn run v1.22.21
$ /Users/s22/Downloads/BasicTS/node_modules/.bin/all-contributors add zezhishao code,infra,ideas
(node:60324) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
FetchError: invalid json response body at https://github.com/api/v3/users/zezhishao reason: Unexpected token 'N', "Not Found" is not valid JSON
at /Users/s22/Downloads/BasicTS/node_modules/node-fetch/lib/index.js:273:32
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
```

**Screenshots**
image

**Additional context**
I am sure that my network is fine (I can connect Google or any other websites), and the user (zezhishao, ie. myself) also does exist. The url `https://github.com/api/v3/users/zezhishao` can not be found:

image

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。