question

KatieMay-7023 avatar image
0 Votes"
KatieMay-7023 asked GrillSerina-8308 answered

Github Integration Failure code 404



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
image.png (21.9 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I'm having the exact same issue. The GitHub token with repo permissions has been saved in my Databricks account, and the repository is public.
Has someone come up with a solution for this issue?
Thanks.

0 Votes 0 ·
UmamahFatima-1698 avatar image
2 Votes"
UmamahFatima-1698 answered

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!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

PRADEEPCHEEKATLA-MSFT avatar image
0 Votes"
PRADEEPCHEEKATLA-MSFT answered PRADEEPCHEEKATLA-MSFT commented

Hello @KatieMay-7023,

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@PRADEEPCHEEKATLA-MSFT Thank you for the reply.

My GitHub personal access token is set up with "repo" permission (see screenshot). I have tried multiple times, following the reference documentation, but still no luck.

32383-image.png


0 Votes 0 ·
image.png (66.7 KiB)

Hello @KatieMay-7023,

This issue looks strange. For a deeper investigation and immediate assistance on this issue, if you have a support plan you may file a support ticket.

0 Votes 0 ·
SALASGLENDA-1241 avatar image
0 Votes"
SALASGLENDA-1241 answered

Did you resolve the issue?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GrillSerina-8308 avatar image
0 Votes"
GrillSerina-8308 answered


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!



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.