Skip to content

Github\Exception\RuntimeException: Bad credentials #647

Description

@sentry

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions