Last active
September 3, 2023 10:21
-
-
Save waldekmastykarz/564843ca38a11ca71dd36f04508834e0 to your computer and use it in GitHub Desktop.
GitHub m365proxy preset
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"plugins": [ | |
{ | |
"name": "RateLimitingPlugin", | |
"enabled": true, | |
"pluginPath": "plugins\\m365-developer-proxy-plugins.dll", | |
"configSection": "rateLimiting" | |
} | |
], | |
"urlsToWatch": [ | |
"https://api.github.com/*" | |
], | |
"rateLimiting": { | |
"headerLimit": "X-RateLimit-Limit", | |
"headerRemaining": "X-RateLimit-Remaining", | |
"headerReset": "X-RateLimit-Reset", | |
"costPerRequest": 1, | |
"resetTimeWindowSeconds": 3600, | |
"warningThresholdPercent": 0, | |
"rateLimit": 60, | |
"resetFormat": "UtcEpochSeconds", | |
"whenLimitExceeded": "Custom", | |
"customResponseFile": "github-rate-limit-exceeded.json" | |
}, | |
"rate": 50, | |
"labelMode": "text", | |
"logLevel": "info" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"responses": [ | |
{ | |
"url": "https://api.github.com/users/*", | |
"method": "GET", | |
"responseCode": 200, | |
"responseBody": { | |
"login": "octocat", | |
"id": 583231, | |
"node_id": "MDQ6VXNlcjU4MzIzMQ==", | |
"avatar_url": "https://avatars.githubusercontent.com/u/583231?v=4", | |
"gravatar_id": "", | |
"url": "https://api.github.com/users/octocat", | |
"html_url": "https://github.com/octocat", | |
"followers_url": "https://api.github.com/users/octocat/followers", | |
"following_url": "https://api.github.com/users/octocat/following{/other_user}", | |
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", | |
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", | |
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions", | |
"organizations_url": "https://api.github.com/users/octocat/orgs", | |
"repos_url": "https://api.github.com/users/octocat/repos", | |
"events_url": "https://api.github.com/users/octocat/events{/privacy}", | |
"received_events_url": "https://api.github.com/users/octocat/received_events", | |
"type": "User", | |
"site_admin": false, | |
"name": "The Octocat", | |
"company": "@github", | |
"blog": "https://github.blog", | |
"location": "San Francisco", | |
"email": null, | |
"hireable": null, | |
"bio": null, | |
"twitter_username": null, | |
"public_repos": 8, | |
"public_gists": 8, | |
"followers": 10283, | |
"following": 9, | |
"created_at": "2011-01-25T18:44:36Z", | |
"updated_at": "2023-08-22T11:19:25Z" | |
} | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"responseCode": 403, | |
"responseHeaders": { | |
"Content-Type": "application/json; charset=utf-8" | |
}, | |
"responseBody": { | |
"message": "You have exceeded a secondary rate limit and have been temporarily blocked from content creation. Please retry your request again later.", | |
"documentation_url": "https://docs.github.com/rest/overview/resources-in-the-rest-api#secondary-rate-limits" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment