Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Select Topic Area

Bug

GitHub Feature Area

Repositories

Body

I'm experiencing an issue where I can access most parts of a repository I have admin access to, but the main repository page returns a 404 error.

Repository Access:

  • I have admin permissions on the repository (verified)
  • I can push, create PRs, edit files, etc. without issues
  • My friend (repo owner) confirmed my admin status is still active

Problem:

Unexpected Workaround: When I navigate to the branches page first, then click the "Code" tab, I can successfully access the main repository page. But direct URL access still fails.

Expected Behavior: The main repository page should be accessible directly via https://github.com/user/repo

The flow is:

  • Navigate directly to repository main page URL
  • Observe 404 error
  • Navigate to /branches page (works)
  • Click "Code" tab (works)
  • Try direct URL again (still fails)

And it’s not just me that I’ve experienced this, the host of the repo (organization) also have the same problem.

I mentioned the repo URL, but there are also other ones where I've encountered the same issue - /settings for example.

You must be logged in to vote

We have recently faced this same issue, the problem was that an import was missing in one of the files from the branch we attempted to merge with main.

To solve it we created a new branch from the latest stable commit in main (new-main), merged the branch again, and carefully reviewed all merge conflicts until we found the missing import. For some reason the error was not being flagged anywhere for us, and in trying to push the merged main branch to git it broke.

The issue with the 404 errors happens because main is the default branch, so when you go into your repo it tries to read it, fails and throws the error.

If you had not figured it out yet, I hope this helps!

Replies: 4 comments · 2 replies

Comment options

💬 Your Product Feedback Has Been Submitted 🎉

Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users.

Here's what you can expect moving forward ⏩

  • Your input will be carefully reviewed and cataloged by members of our product teams. 
    • Due to the high volume of submissions, we may not always be able to provide individual responses.
    • Rest assured, your feedback will help chart our course for product improvements.
  • Other users may engage with your post, sharing their own perspectives or experiences. 
  • GitHub staff may reach out for further clarification or insight. 
    • We may 'Answer' your discussion if there is a current solution, workaround, or roadmap/changelog post related to the feedback.

Where to look to see what's shipping 👀

  • Read the Changelog for real-time updates on the latest GitHub features, enhancements, and calls for feedback.
  • Explore our Product Roadmap, which details upcoming major releases and initiatives.

What you can do in the meantime 💻

  • Upvote and comment on other user feedback Discussions that resonate with you.
  • Add more information at any point! Useful details include: use cases, relevant labels, desired outcomes, and any accompanying screenshots.

As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities.

Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐

You must be logged in to vote
0 replies
Comment options

Hey there! 👋

Thanks for posting in the GitHub Community, @PedroVMota ! We're happy you're here. You are more likely to get a useful response if you are posting in the applicable category. The Accessibility category is a place for our community to discuss and provide feedback on the digital accessibility of GitHub products. Digital accessibility means that GitHub tools, and technologies, are designed and developed so that people with disabilities can use them.

I've gone ahead and moved this to the correct category for you, Repositories. Good luck!

You must be logged in to vote
1 reply
@PedroVMota
Comment options

Ohh you right thank you!

Comment options

We have recently faced this same issue, the problem was that an import was missing in one of the files from the branch we attempted to merge with main.

To solve it we created a new branch from the latest stable commit in main (new-main), merged the branch again, and carefully reviewed all merge conflicts until we found the missing import. For some reason the error was not being flagged anywhere for us, and in trying to push the merged main branch to git it broke.

The issue with the 404 errors happens because main is the default branch, so when you go into your repo it tries to read it, fails and throws the error.

If you had not figured it out yet, I hope this helps!

You must be logged in to vote
1 reply
@PedroVMota
Comment options

I understand. Well, today, Friday the 3rd, I haven't faced any issue until now—it was probably just a problem with GitHub itself, because we haven't done anything and it was solved. But that solution would have helped. I don't have the problem anymore, but if I had it, I would try that.

Answer selected by PedroVMota
Comment options

It happened again. but its worse

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GitHub or a GitHub feature is not working as intended Repositories The core of version-controlled code storage Accessibility Making GitHub useable for members of the disability community
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.