Performing too many requests from the Closure Compiler API you get this error:
Error(22): Too many compiles performed recently. Try again later.
What is the actual/current limit? Is it an hourly limit? A rolling window?
Any documentation on how this is calculated? The only information about this I could find is on this page (search for "abuse"): https://developers.google.com/closure/compiler/docs/gettingstarted_ui?hl=en
The Closure Compiler is a tool for making JavaScript download and run faster. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left.
Explanation: In Advanced mode it rewrites the JavaScript by renaming variables and functions from longer descriptive names to single letters to save file size, and it inlines functions, coalescing them into single functions wherever it determines that it can.
The value of this parameter indicates the degree of compression and optimization to apply to your JavaScript. There are three possible compilation levels: WHITESPACE_ONLY , SIMPLE_OPTIMIZATIONS , and ADVANCED_OPTIMIZATIONS .
There are per minute/per hour/per day caps. This is not currently documented, but I believe it the caps allow a sustained rate of ~1 per minute. In my experience when people run into this problem, they would would be either happier with the command-line tool, or a local compilation server like Plovr or are hitting it by accident (i.e. they don't realize that they are continuously hitting the web service).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With