DEV Community

Cindy Lam
Cindy Lam

Posted on • Updated on

Heroku Error: item could not be retrieved unauthorized

It has taken me a while to figure out why I got this particular error (displaying in red at the top right corner under my profile image in Heroku) since I did not find any relevant info in Google search.

The error means that there is an issue with an authorization specifically on your Github account (this could be due to, I guess, inactivity in the deployment of GitHub projects linked with Heroku).

The solution is pretty straight forward:
(1) Click on the Deploy section in Heroku
(2) Scroll to App connected to GitHub
(3) Click on the Disconnect... button
(4) Allow the authorization in the connection between Github and Heroku -> Enter your Github password
(5) Reconnect to your Github project
(6) Then you should be able to deploy successfully in the Manual deploy or Automatic deploys sections!!

Hope this helps if you also encounter the similar issue! :)

Top comments (7)

Collapse
 
victoradukwu profile image
Victoradukwu

You saved a life, bro! Thanks!

Collapse
 
ngl4 profile image
Cindy Lam

Np! Glad it helps you out!

Collapse
 
ogoogo profile image
Ogo-Ogo

thank u! it helps indeed

Collapse
 
ngl4 profile image
Cindy Lam • Edited

Glad it is helpful to you! :)

Collapse
 
kevinweitgenant profile image
kevin-weitgenant

just created an account here to thank you!

Collapse
 
ngl4 profile image
Cindy Lam • Edited

Ty! Glad It is helpful! :)

Collapse
 
rjulien profile image
r-julien

Thanks bro it's working I was struggling with that for 30 minutes