Search Here

[Solved] Heroku & Github Error: item could not be retrieved unauthorized

 In this article, I am going to show you how to resolve Heroku and GitHub deployment errors (Heroku Error: item could not be retrieved unauthorized). It takes a lot of R&D to figure out why I have to face this issue/error.

[Solved] Heroku & Github Error: item could not be retrieved unauthorized

Heroku Deployment Error: Item could not be retrieved unauthorized

The above error shows in red color in the top right corner of the Heroku window. After getting my head down in this error and after some hit and trial I found the issue with an authorization between the GitHub account and Heroku. And the reason is inactivity in the deployment of the GitHub repository that I have linked with Heroku.

Read More: Create Dynamic Sitemap in Django Using Multiple Models Slug

How to Resolve Item could not be retrieved unauthorized

The solution is pretty simple

  • Go to the Heroku dashboard and click on the "Deploy" menu
  • Just scroll down and search "App connected to GitHub"
  • Click on the "Disconnect" button to disconnect the GitHub repository
Heroku Disconnect Github Repository

    • Reconnect to GitHub by allowing authorization in the connection between GitHub and Heroku
    • Just enter your repository name in the search box and click on the "Connect" button
    Heroku Connect to Github Repository
    • Now you should be able to deploy successfully in the Manual deploy or Automatic deploys sections


    Post a Comment

    0 Comments