heroku / heroku-repo

Plugin for heroku CLI that can manipulate the repo
MIT License
687 stars 111 forks source link

reset command fails with parsing error when given an invalid app name #76

Closed zeke closed 7 years ago

zeke commented 7 years ago

👋

I discovered this when accidentally specifying an app name that doesn't exist:

$ heroku repo:reset -a download-counts
Resetting Git repository for ⬢ download-counts... ⣯ 
 â–¸    Unexpected token ! in JSON at position 1

$ heroku repo:reset -a npm-download-counts
Resetting Git repository for ⬢ npm-download-counts... done
dmathieu commented 7 years ago

@heroku/cli we're using heroku.request to make that call, but it returns plain text. What would be the way to avoid the response being parsed to json?

jdx commented 7 years ago

use raw: true I think