adobe / adobe/oss-contributors

if oauth/personal access token is invalid, this should not blow up the program

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
bug enhancement
Dominant language
JavaScript
Stars
35
Forks
9
PR merge metrics
No merged PRs in 30d

Description

During an `update-db` run, I stumbled upon the following crash:

```
2% complete
Retrieving GitHub token rate limits...
...complete.
Error retrieving rate limit { [Error: {"message":"Bad credentials","documentation_url":"
https://developer.github.com/v3"}]
message:
'{"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}'
,
code: 401,
```

.. which stopped the program from running. Should make it more resilient.

Contributor guide

Open the contributing guide

Research direction

The crash occurs during `update-db` while retrieving GitHub token rate limits. Start by locating that rate-limit retrieval and its error handling, then check how the run responds to a 401 Bad credentials response. Done when an invalid token no longer stops the program; the issue does not name a file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, javascript
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.