Strider-CD / strider-heroku

Strider plugin for heroku deployment
2 stars 8 forks source link

Heroku Deploy Configuration in Project Fails to Reload Apps (Sometimes) #8

Open terraboops opened 9 years ago

terraboops commented 9 years ago

I set up a job last week to deploy to Heroku and it is still working fine for deployment, however when I click 'Refresh App List' in the project configuration for the Heroku Deploy Plugin, I get this error message:

Failed to get accounts list for me@tylermauthe.com

So it seems that after some length of time, the Heroku plugin loses it's OAuth authorization... Or something.

I will dig into the logs further this weekend, for now just opening the ticket. If anyone else is experiencing this, feel free to comment with any info you can dig up.

terraboops commented 9 years ago

If I delete the Heroku Account from my User settings and then re-add it, I am able to refresh the data. I was not prompted on the Heroku side to re-authorise the application -- so the OAuth credentials were still valid and authorised.

I am guessing this is a token expiration issue. We should get new tokens if the current one is invalid for any Heroku Account. Probably do this at login?

Since I have this workaround for now and other important things to work on, I will not be digging into this further tonight. Possibly later this weekend.