I get the following error in my UpgradeMODX widget:
Konnte Versionsliste von GitHub nicht laden – 403 API rate limit exceeded for 220.127.116.11. (But here’s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.) Fehler: Konnte Versionsliste von GitHub nicht laden – 403 API rate limit exceeded for 18.104.22.168. (But here’s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.) Fehler: Regex failed
What I have tried so far to solve this problem:
On GitHub I created an access token. I entered this access token and my github username in the system settings: ugm_github_token and ugm_github_username.
The UpgradeMODX extra does exactly the same, just automated.
Maybe it’s also possible to host the update information yourself.
The system setting ugm_versionlist_api_url shows the URL where the version information is coming from. You could theoretically change that and provide the same JSON data yourself.
The default value for the api url is //api.github.com/repos/modxcms/revolution/tags.
Your server seemingly has a problem accessing this url.
Can you access the URL directly in your browser? Maybe by adding your github credentials? Maybe by using a VPN?
If you can access the URL, you can save the response (e.g. as “tags.json”), then put this file on a server of yours (e.g. https://mydomain.com/tags.json) and use this new URL for the setting ugm_versionlist_api_url.
(Of course this is only a temporary solution and you have to manually update the file every time MODX releases a new version.)
I’m certain that the problem is not with the server’s ability to connect to the URL. That “Rate limit exceeded” message is coming from GitHub’s server.
In fact, I don’t think the problem is the rate limit at all since the last time I checked, the anonymous rate is 60 per hour.
I’ve seen cases where GitHub returned that message for other issues. You might turn on Dev Tools in your browser (Ctrl-shift-i) and watch the Network tab at the bottom. If you can find the call to GitHub, you can click on that entry to drill down and look at the Response tab to see the full message from GitHub. That might provide a clue to what’s happening.
This drives me nuts too. So I just checked my IP address. It start with 84. But the UPM widget is saying: API rate limit exceeded for 81… I’ve no idea where this information is coming from but maybe anyone else? And I just checked my internet connections with LittleSnitch. When GitHubDesktop is running even in the background it connects to GitHub every minute.
Update: I just looked ip the 81… ip address. It’s wierd, it is belonging to an internet provider I am not using. Maybe m client but I’m sure he died not try to update MODx. It’s wierd.