Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@octokit/plugin-retry

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/plugin-retry

Automatic retry plugin for octokit

  • 3.0.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.3M
increased by1.95%
Maintainers
2
Weekly downloads
 
Created

What is @octokit/plugin-retry?

The @octokit/plugin-retry npm package is designed to automatically retry failed requests in Octokit, which is a set of client libraries for accessing GitHub's API. This plugin is particularly useful for handling transient errors and rate limit exceedances, improving the robustness of applications that interact with GitHub's API.

What are @octokit/plugin-retry's main functionalities?

Automatic Retry on Failure

This feature automatically retries requests that fail due to server errors or rate limiting. The code sample shows how to integrate the retry plugin with Octokit and make a request that will be retried automatically in case of failure.

{
  const { Octokit } = require('@octokit/core');
  const { retry } = require('@octokit/plugin-retry');

  const MyOctokit = Octokit.plugin(retry);
  const octokit = new MyOctokit({ auth: 'personal-access-token' });

  octokit.request('GET /repos/{owner}/{repo}', {
    owner: 'octocat',
    repo: 'hello-world'
  }).catch(error => {
    console.error('Request failed:', error);
  });
}

Other packages similar to @octokit/plugin-retry

FAQs

Package last updated on 24 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc