pxt-microbit icon indicating copy to clipboard operation
pxt-microbit copied to clipboard

"GitHub rate limit exceeded" when trying to push to a GitHub repo

Open microbit-carlos opened this issue 2 years ago • 6 comments

I've got this message for the first time this morning (UK time). This was simply after opening MakeCode, importing a GitHub URL, making a few changes, and trying to push (at this point it asked me to login into GitHub, which I did). No other MakeCode/GitHub activity done before that, so very unlikely that I have been really hitting the rate limit.

I then waited over an hour and tried again, same error.

Screenshot 2023-10-18 at 12 26 16

Is the GitHub rate limit exceeded, please wait and try again message produced by MakeCode or the GitHub API actual response? It's possible there is a different API error being accidentally identified as a rate limit?

microbit-carlos avatar Oct 18 '23 12:10 microbit-carlos

Looking at the pxt source code, looks like those messages are displayed when receiving 403 responses from GitHub:

I do have write access to this repo, as I have been able to push locally (just tested this).

I've tried resetting MakeCode and login again, same error.

Should the repo be visible in the list shown when trying to import a GH repo (instead of importing a URL)? Because it's not there and it is a public repo from the microbit-foundation GH org: image

Using the MakeCode explorer tool and it looks like I only have access to the repos shown in the screenshot above, and I haven't been able to find any info in the docs indicating we don't have access to org repositories? https://makecode.com/github-explorer

~~I have write access to the repo I was trying to push, do we need to be added as collaborators directly?~~

Either way it looks like the error message should be updated to reflect the real problem, which in this case is not the rate limiting.


Edit: Even as an admin in the repo I still cannot push nor see it in the MakeCode GitHub Explorer

microbit-carlos avatar Oct 18 '23 13:10 microbit-carlos

I can reproduce the same issue for Mirosoft/pxt-data-streamer repo. Looks like there is some additional permission we need for org level repo.

abchatra avatar Oct 20 '23 21:10 abchatra

Reported in support ticket https://support.microbit.org/helpdesk/tickets/75330 (private)

martinwork avatar May 16 '24 15:05 martinwork

@martinwork can you point to which repo they are trying to push this to? This is particular to org level repo like Microsoft.

abchatra avatar May 16 '24 17:05 abchatra

@abchatra I'll check with them.

martinwork avatar May 16 '24 21:05 martinwork

Yes, it seems it is about an organisation. It is OK when they fork to a personal account. rate limit exceeded

martinwork avatar May 23 '24 10:05 martinwork