Skip to content

vue list throw error when github api response message #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
guox191 opened this issue Jul 26, 2016 · 0 comments
Closed

vue list throw error when github api response message #130

guox191 opened this issue Jul 26, 2016 · 0 comments

Comments

@guox191
Copy link

guox191 commented Jul 26, 2016

$ 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants