Github Integration Failure code 404

Katie May 21 Reputation points
2020-10-13T23:18:36.01+00:00

I have followed the instructions to integrate Databricks with GitHub, found here: https://docs.databricks.com/notebooks/github-version-control.html

However, I continue to get the following failure error upon trying to sync my notebooks: "Error while syncing Git history: Response from GitHub: status code: 404, reason phrase: Not Found"

The GitHub token with repo permissions has been saved in my Databricks account, and the repository is public.
Any idea what could be causing this?

32115-image.png

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
1,947 questions
{count} votes

Accepted answer
  1. Umamah Fatima 86 Reputation points
    2022-02-16T08:57:34.367+00:00

    Go to the branch dropdown and select "main". This issue is occurring in many environments because GitHub has recently renamed its master branch as main. Hence, when trying to sync with master branch, it throws a 404 error. Hope this helps!

    2 people found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. PRADEEPCHEEKATLA-MSFT 78,331 Reputation points Microsoft Employee
    2020-10-14T06:53:41.537+00:00

    Hello @Katie May ,

    Welcome to Microsoft Q&A platform.

    Why am I getting a 404 error on a repository that exists?

    Typically, GitHub send a 404 error when your client isn't properly authenticated.

    Make sure you have proper permissions on GitHub personal access token.

    To generate a GitHub personal access token, follow the GitHub documentation. The token must have the “repo” permission.

    Reference: Azure Databricks - GitHub version control

    Hope this helps. Do let us know if you any further queries.

    ----------------------------------------------------------------------------------------

    Do click on "Accept Answer" and Upvote on the post that helps you, this can be beneficial to other community members.


  2. SALAS, GLENDA 1 Reputation point
    2021-06-24T21:15:36.05+00:00

    Did you resolve the issue?

    0 comments No comments

  3. Grill, Serina 1 Reputation point
    2022-03-03T17:54:32.587+00:00

    UmamahFatima-1698 answered • Feb 16 2022 at 1:57 AM
    Go to the branch dropdown and select "main". This issue is occurring in many environments because GitHub has recently renamed its master branch as main. Hence, when trying to sync with master branch, it throws a 404 error. > Hope this helps!

    This resolved the issue for me, thanks!

    0 comments No comments