Skip to content

vue list throw error when github api response message #130

@guox191

Description

@guox191

$ vue list

Cli will throw error when github API rate limit exceeded, the response just like :

{
  "message": "API rate limit exceeded for <your IP address>. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
  "documentation_url": "https://developer.github.com/v3/#rate-limiting"
}

But code expects an array, so get problem:

JSON.parse(body).forEach(function (repo) {

TypeError: JSON.parse(...).forEach is not a function

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions