Skip to content

Octokat.js errors don't include the response JSON #2017

Closed

Description

@joshaber

For example, in the case of #2016, the error's message is:

"{"message":"Repository creation failed.","errors":[{"resource":"Repository","code":"custom","field":"name","message":"name already exists on this account"}],"documentation_url":"https://developer.github.com/v3/repos/#create"} POST https://api.github.com/user/repos Status: 422"

It includes the response JSON but also the method, URL, and status. It seems to be coming from https://github.com/philschatz/octokat.js/blob/8e9312ea669c840fde16a1aa022c8658f4158c56/src/requester.js#L170. We really just want the response JSON.

Activity

  1. added
    tech-debt
    on Jun 15, 2017
  2. added this to the M5: Post-Beta Bougie milestone on Jun 15, 2017
  3. changed the title [-]Octokat errors don't include the response JSON[/-] [+]Octokat.js errors don't include the response JSON[/+] on Jun 15, 2017
  4. removed this from the M5: Post-Beta Bougie milestone on Jun 15, 2017
  5. added
    bug
    on Jun 19, 2017
  6. joshaber commented on Jun 19, 2017

    @joshaber
    ContributorAuthor

    Since, as #2036 demonstrates, this has user-facing consequences, I'm removing the tech-debt label.

  7. removed
    tech-debt
    on Jun 19, 2017
  8. self-assigned this
    on Jun 21, 2017
  9. locked as resolved and limited conversation to collaborators on Jul 21, 2018
  10. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions