After figuring out how to correctly import GitHub repositories (detailed in my most recent post), I was able to successfully clone my repo into one of my Glitch projects yesterday. Sadly, it seems Glitch users lack the capability of directly pulling from their GitHub repositories and, as a result, integrating changes made to the origin outside of the Glitch editor must be re-imported. While I was able to do just that a few times yesterday, I ran into an error after about the third time or so:
Arg, something went wrong. Try again? :@
After viewing the web console, I was able to determine the error was caused by GitHub’s API returning a 404 for my own repository’s web resource, which should be located at
https://api.github.com/repos/:username/:repository (of course, where
:username is my GitHub username and
:repository is the name of my repository).
I’ve revoked OAuth from Glitch on my GitHub account, clicked the “revoke repo access” link on Glitch, deleted cookies and cache from both services, etc.—all multiple times—and still cannot get a non-404 response from GitHub’s API. If the issue is related to authentication, I can’t help but wonder why the folks over at GitHub didn’t bother to use a 401 instead.
The problem of receiving 404s now has me completely dumbfounded as the endpoint was presumably “working” for me just yesterday.