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.

Extension generates lots of API calls against GitHub

See original GitHub issue

👋 @KnisterPeter !

It looks like as if vscode-github v0.27.1 generates a lot of API calls against GitHub in certain cases. Here are the counted API calls from a single VSCode user working on a single repo over a single day on my GitHub Enterprise instance:

32328 /api/v3/repos/demo-org/demo-repo
 9978 /api/v3/repos/demo-org/demo-repo/pulls/123
11174 /api/v3/repos/demo-org/demo-repo/pulls?state=open

That’s >55k requests per day. IOW more than 2 requests per second in a 8h work day 😃 ! While github.com can probably handle this load just fine, this might be a problem for GitHub Enterprise users.

Do you have an idea what could cause the excessive API usage in the extension?

/cc @terrorobe @b4mboo

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
KnisterPetercommented, May 2, 2018

Release is out. Please keep an eye on the request metrics the next days. Any report back is greatly appreciated.

1reaction
KnisterPetercommented, May 2, 2018

No, even for bigger teams the repo data should be very stable. It contains the following information:


export interface GithubRepositoryStruct {
  owner: {
    login: string;
  };
  name: string;
  full_name: string;
  default_branch: string;
  allow_rebase_merge?: boolean;
  allow_squash_merge?: boolean;
  allow_merge_commit?: boolean;
  html_url: string;
  parent?: GithubRepositoryStruct;
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

hub · an extension to command-line git
hub is an extension to command-line git that helps you do everyday GitHub tasks without ever leaving the terminal. Read the full documentation:...
Read more >
Rest API - GitHub Docs
To create integrations, retrieve data, and automate your workflows, build with the GitHub REST API.
Read more >
tanhakabir/rest-book - GitHub
GitHub - tanhakabir/rest-book: REST Book is a Visual Studio Code extension that allows you to perform REST calls in a Notebook interface.
Read more >
About GitHub's APIs
Learn about GitHub's APIs to extend and customize your GitHub experience. About GitHub's APIs. GitHub provides two APIs: a REST API and a...
Read more >
REST Client Extension for Visual Studio Code - GitHub
Generate code snippets for HTTP request in languages like Python , JavaScript and more! Remember Cookies for subsequent requests; Proxy support; Send SOAP ......
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