500 Error When Viewing Commits

Still need help?

The Atlassian Community is here for you.

Ask the community


Problem

In some circumstances when a commit is really large, Bitbucket Cloud's UI will throw a 500 error upon clicking the commit hash link.

This happens when Bitbucket Cloud tries to load a large commit; and after a while it simply timeout - because the commit is too large to load.

Diagnosis

You can confirm the issue by running this command:

$ git log -p <your_commit_hash> |wc -l

For example, if the output of the command appears to be:

$ git log -p <your_commit_hash> |wc -l
5069820 #outputresult

This means your commit has 5.069.820 lines of code. Due to its size, it is causing the error 500 or timeout when you try to access that.

Workaround

You should be able to view your commit details that you wish to see in the Bitbucket Cloud UI through Git, by running this command in the local repository:

$ git show -p <your_commit_hash>

Last modified on Apr 5, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.