Could not compare commits between SHAs ...

September 17th, 2020 • By Brian Rue

Occasionally when using Rollbar's Deploy Tracking feature, you may see a message such as the following:

Could not compare commits between SHAs abcdef.... and 123456.... This usually means that one of the SHAs is either invalid or has not been pushed to Github.

A common cause of this problem is that your Github OAuth token has expired. Here are steps to see if this is the source of the problem:

In Rollbar:

  • In the Rollbar project where you encountered the issue, go to Settings → Source Control . Copy the Repository , Default Branch , and Project Root settings for later use.
  • Click Disconnect where it says Connected to Github as {github-username} .

In GitHub:

  • Go to Settings → Applications → Authorized OAuth Apps, find Rollbar, click Revoke, and then confirm that you want to revoke access.

In Rollbar:

  • In the Rollbar project where you encountered the issue, go to Settings → Source Control, select Github as the source control provider, then click Connect to Github, and then complete the authorization process.
  • Reconfigure Repository , Default Branch , and Project Root .
  • Check your deploys page. If the SHAs specified in the deploys are valid, then you should no longer see the message.

Get the latest updates delivered to your inbox.