Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github\Exception\RuntimeException: Bad credentials #647

Open
sentry-io bot opened this issue Oct 24, 2024 · 0 comments
Open

Github\Exception\RuntimeException: Bad credentials #647

sentry-io bot opened this issue Oct 24, 2024 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Oct 24, 2024

Such errors should implement a backoff. We shouldn't keep requesting when GitHub is down or the credentials are missing.

Sentry Issue: CONTRIB-TRACKER-7S

Github\Exception\RuntimeException: Bad credentials
  File "/modules/custom/ct_github/src/GithubQuery.php", line 134, in Drupal\ct_github\GithubQuery::getUserContributions
    return $this->client->api('graphql')->execute($query);
  File "/modules/custom/ct_github/src/GithubQuery.php", line 120, in Drupal\ct_github\GithubQuery::isUserValid
    $userContributions = $this->getUserContributions($username);
  File "/modules/custom/ct_github/src/Plugin/ContributionSource/GithubContribution.php", line 99, in Drupal\ct_github\Plugin\ContributionSource\GithubContribution::isUserValid
    return $this->query->isUserValid($username);
  File "/modules/custom/ct_manager/src/Plugin/QueueWorker/ProcessUsers.php", line 92, in Drupal\ct_manager\Plugin\QueueWorker\ProcessUsers::processItem
    if (!($plugin_instance->isUserValid($user))) {
  File "/core/lib/Drupal/Core/Cron.php", line 270, in Drupal\Core\Cron::processQueue
    $worker->processItem($item->data);
...
(31 additional frame(s) were not displayed)

Github\Exception\RuntimeException: Bad credentials in Github\HttpClient\Plugin\GithubExceptionThrower->Github\HttpClient\Plugin\{closure}() (line 137 of /app/vendor/knplabs/github-api/lib/Github/HttpClient/Plugin/GithubExceptionThrower.php).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants