Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

@octokit/request-error

Package Overview
Dependencies
3
Maintainers
4
Versions
19
Issues
File Explorer

Advanced tools

@octokit/request-error

Error class for Octokit request errors

    3.0.2latest

Version published
Maintainers
4
Weekly downloads
5,368,355
decreased by-18.17%

Weekly downloads

Changelog

Source

v3.0.2

3.0.2 (2022-10-13)

Bug Fixes

  • deps: update dependency @octokit/types to v8 (4cabbec)

Readme

Source

http-error.js

Error class for Octokit request errors

@latest Build Status

Usage

Browsers Load @octokit/request-error directly from cdn.skypack.dev <script type="module"> import { RequestError } from "https://cdn.skypack.dev/@octokit/request-error"; </script>
Node

Install with npm install @octokit/request-error

const { RequestError } = require("@octokit/request-error"); // or: import { RequestError } from "@octokit/request-error";
const error = new RequestError("Oops", 500, { request: { method: "POST", url: "https://api.github.com/foo", body: { bar: "baz", }, headers: { authorization: "token secret123", }, }, response: { status: 500, url: "https://api.github.com/foo", headers: { "x-github-request-id": "1:2:3:4", }, data: { foo: "bar", }, }, }); error.message; // Oops error.status; // 500 error.request; // { method, url, headers, body } error.response; // { url, status, headers, data }

LICENSE

MIT

Keywords

FAQs

What is @octokit/request-error?

Error class for Octokit request errors

Is @octokit/request-error popular?

The npm package @octokit/request-error receives a total of 4,550,560 weekly downloads. As such, @octokit/request-error popularity was classified as popular.

Is @octokit/request-error well maintained?

We found that @octokit/request-error demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 4 open source maintainers collaborating on the project.

Last updated on 13 Oct 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc