heroku / heroku-releases-retry

CLI plugin to allow retrying the latest release-phase command
81 stars 7 forks source link

Cannot read property 'id' of null #6

Closed isaiahdw closed 5 years ago

isaiahdw commented 5 years ago

This use to work for me, but I think something with the latest heroku API/cli caused it to stop working.

I get the following error when trying to retry a release:

Cannot read property 'id' of null

dmathieu commented 5 years ago

Could you run HEROKU_DEBUG=* heroku releases:retry? Also, how many releases (failed and succeeded) does the app have?

edelgado commented 5 years ago

It seems to fail on this line: https://github.com/heroku/heroku-releases-retry/blob/master/commands/retry.js#L19

In my case, the app failed to deploy when I first created it (a review app). I modified some config, and wanted to retry using this plugin. Maybe there is nothing to retry if an app has never deployed successfully?

dmathieu commented 5 years ago

Thank you. We'll be looking into this. And yes, in order to have something to retry, you need a successful build (not a deploy). If there is no successful build, there can't be a failed release.