You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error started popping up in our mega-linter runs in our CI system as well as locally, but very intermittently. Was a strange one but I think I tracked it down to the latest commit.
Basically, the call to getAvailableVersions pings github, but if we do that too much, github rate limits us:
{"message":"API rate limit exceeded for <my ip address redacted> (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}
This causes an error in the json.map call inside getAvailableVersions
ERROR: TypeError: json.map is not a function
at /node_modules/editorconfig-checker/dist/lib.js:160:22
at step (/node_modules/editorconfig-checker/dist/lib.js:52:23)
at Object.next (/node_modules/editorconfig-checker/dist/lib.js:33:53)
at fulfilled (/node_modules/editorconfig-checker/dist/lib.js:24:58)
at processTicksAndRejections (node:internal/process/task_queues:94:5)
Unfortunately, using --skip-update-check also does not work because --skip-update-check is checked after the call to getAvailableVersions.
This issue popped up for us using the mega-linter, and as I understand it, mega-linter will call editorconfig-checker for every file that needs to be checked....which can be a lot and quickly will cause a rate limiting issue.
The text was updated successfully, but these errors were encountered:
This error started popping up in our mega-linter runs in our CI system as well as locally, but very intermittently. Was a strange one but I think I tracked it down to the latest commit.
Basically, the call to
getAvailableVersions
pings github, but if we do that too much, github rate limits us:This causes an error in the json.map call inside
getAvailableVersions
Unfortunately, using
--skip-update-check
also does not work because--skip-update-check
is checked after the call togetAvailableVersions
.This issue popped up for us using the mega-linter, and as I understand it, mega-linter will call editorconfig-checker for every file that needs to be checked....which can be a lot and quickly will cause a rate limiting issue.
The text was updated successfully, but these errors were encountered: