New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@octokit/plugin-retry

Package Overview
Dependencies
Maintainers
4
Versions
43
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

  • 7.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
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 07 Jan 2025

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