question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

API rate limit exceeded

See original GitHub issue

The dependabot configuration has following:

- task: dependabot@1
  inputs:
    packageManager: "pip"
    openPullRequestsLimit: 10
    versioningStrategy: "auto"
    gitHubConnection: $(GITHUBVARIABLE)

and the githubvariable is defined in the pipeline

image

However while running the pipeline, we continue to receive this error. Is there a different way to set it?

Submitting joblib pull request for creation. /vendor/ruby/2.6.0/gems/octokit-4.20.0/lib/octokit/response/raise_error.rb:14:in on_complete: GET https://api.github.com/repos/joblib/joblib/commits?sha=1.0.1: 403 - API rate limit exceeded for 52.156.121.197. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.) // See: https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting (Octokit::TooManyRequests)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mburumaxwellcommented, Mar 27, 2021

GitHub connection needs to be supplied as a service connection and not the token. You can create a service connection using the PAT you have.

0reactions
jakubtrebacz-devcommented, Jun 10, 2022

Having automated process to use my own identity to commit or raise PRs or in fact to do anything isn’t a good solution. I got same problem, but I don’t have the PAT token nor any control over it as it’s Project Collection Build Service account that’s used from the pipeline.

trigger: none # Disable CI trigger

variables:
  - name: Repository
    value: 'repo_name'


schedules:
  - cron: '0 7 * * 1' # on Mondays at 7am UTC
    always: true # run even when there are no code changes
    branches:
      include:
        - 'main'
    batch: true
    displayName: 'on Mondays'

pool:
  vmImage: 'ubuntu-latest' # requires macos or ubuntu (windows is not supported)

steps:
  # Checks out repo outside the current repo to run dependabot with `targetRepositoryName` param
  - checkout: git://project_name/${{ variables.Repository }}

  # Creates $(VSS_NUGET_ACCESSTOKEN) for Private feeds
  - task: NuGetAuthenticate@1 

  - task: dependabot@1
    inputs:
      packageManager: 'nuget'
      directory: '/'
      openPullRequestsLimit: '10'
      milestone: '4100'
      mergeStrategy: '1'
      targetRepositoryName: '${{ variables.Repository }}'
      setAutoComplete: true
      azureDevOpsAccessToken: $(System.AccessToken)
      gitHubAccessToken: $(System.AccessToken)
      # pull-request-branch-name.separator: 'dependabot/nuget/'
      extraEnvironmentVariables: DEPENDABOT_EXTRA_CREDENTIALS=[{"type":"nuget_feed","token":"$(VSS_NUGET_ACCESSTOKEN)","url":"https://pkgs.dev.azure.com/....../nuget/v3/index.json"}]

This works fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

API Rate Limits - Deep Security Automation Center
When a rate limit is exceeded, the manager does not process requests until the call rate falls below all rate limits. When a...
Read more >
'API rate limit exceeded': What Is It and How to Avoid
Common reasons for exceeding an API rate limit include a sudden spike in requests due to increased user activity, a coding error that...
Read more >
What to do when you are being rate limited
If you receive an error message like “API rate limit exceeded” or “You are being rate limited”, that is the website telling you...
Read more >
Is there a way to increase the API Rate limit or to bypass it ...
After n number of successful requests, I get HTTP 403: Forbidden with the message API Rate Limit Exceeded . Is there a way...
Read more >
GitHub Error: Rate Limit Exceeded - Coder Diaries
When GitHub throws "Rate Limit Exceeded" error, the cause is exceeding the number of requests allowed per hour. Find out how to solve...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found