{"id":22382437,"url":"https://github.com/jcoreio/superagent-verbose-errors","last_synced_at":"2025-07-31T03:31:49.587Z","repository":{"id":57374660,"uuid":"122525702","full_name":"jcoreio/superagent-verbose-errors","owner":"jcoreio","description":"include response body in superagent errors for failed requests","archived":false,"fork":false,"pushed_at":"2018-02-22T19:56:12.000Z","size":75,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-22T18:15:46.298Z","etag":null,"topics":["error","error-handling","superagent","verbose"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcoreio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-22T19:35:58.000Z","updated_at":"2022-08-22T07:58:33.000Z","dependencies_parsed_at":"2022-08-29T21:01:39.937Z","dependency_job_id":null,"html_url":"https://github.com/jcoreio/superagent-verbose-errors","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jcoreio/superagent-verbose-errors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fsuperagent-verbose-errors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fsuperagent-verbose-errors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fsuperagent-verbose-errors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fsuperagent-verbose-errors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcoreio","download_url":"https://codeload.github.com/jcoreio/superagent-verbose-errors/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Fsuperagent-verbose-errors/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267869474,"owners_count":24157786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["error","error-handling","superagent","verbose"],"created_at":"2024-12-05T00:13:00.231Z","updated_at":"2025-07-31T03:31:49.298Z","avatar_url":"https://github.com/jcoreio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# superagent-verbose-errors\n\n[![Build Status](https://travis-ci.org/jcoreio/superagent-verbose-errors.svg?branch=master)](https://travis-ci.org/jcoreio/superagent-verbose-errors)\n[![Coverage Status](https://codecov.io/gh/jcoreio/superagent-verbose-errors/branch/master/graph/badge.svg)](https://codecov.io/gh/jcoreio/superagent-verbose-errors)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n\ninclude response body in superagent errors for failed requests\n\n## Usage\n\n```sh\nnpm install --save superagent superagent-use superagent-verbose-errors\n```\n\nTo make any superagent request that fails append the response body to\nits error message:\n```js\nconst superagent = require('superagent-use')(require('superagent'))\nsuperagent.use(require('superagent-verbose-errors'))\n```\n\n\nTo only include the response body for certain errors:\n```js\nconst superagent = require('superagent-use')(require('superagent'))\nsuperagent.use(require('superagent-verbose-errors')({\n  filter: res =\u003e res.status === 400\n}))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcoreio%2Fsuperagent-verbose-errors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcoreio%2Fsuperagent-verbose-errors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcoreio%2Fsuperagent-verbose-errors/lists"}