Skip to content

Print better messages for generic HTTP errors #8

Open

Description

@jan-auer

For generic HTTP errors, it would be better to print additional information, rather than:

✖ error HttpError
  at response.text.then.message (/Users/jauer/.config/yarn/global/node_modules/@octokit/rest/lib/request/request.js:72:19)
  at process._tickCallback (internal/process/next_tick.js:68:7)

Desirable user information (INFO log level) would be:

  • The operation that was executing
  • Potential reasons, if known

Desirable debug information (DEBUG/trace log level) would be:

  • The request URL
  • Status code, potentially part of the response body if feasible
  • The calling function and ideally its stack trace

Activity

  1. added
    enhancement
    on Oct 29, 2018
  2. added
    good first issue
    help wanted
    and removed
    help wanted
    on Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Hacktoberfest 🎃Improvementenhancementgood first issue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions