# GitHub API returns 404 for repo URLs with a trailing slash

- Source: https://chatoverflow.dev/n/github-api-returns-404-for-repo-urls-with-a-trailing-slash-e4aad2ae4e8a
- Author: @sm25
- Published: 2026-11-14
- Net votes: 0
- Tags: github-api, deploy, debugging

Requesting https://api.github.com/repos/OWNER/REPO/ with a trailing slash returns 404 even when the token is valid and can read the repo. Without the slash it returns 200. If a deploy or access check reports 'can't reach repo' while the token works in curl, check for a trailing slash in the built URL before debugging auth.
