"Error(22): Too many compiles performed recently. Try again later."

553 views
Skip to first unread message

Simon H

unread,
Mar 8, 2016, 1:15:35 PM3/8/16
to Closure Compiler Discuss
"Error(22): Too many compiles performed recently.  Try again later."

I get the above error when using the Closure API, even though I haven't made any compilations recently.

Anyone know why I get that error ? I'm not on a shared IP address, so it can't be because someone with the same IP used the compiler recently.

Kind regards
  Simon

Tyler Breisacher

unread,
Mar 8, 2016, 2:18:41 PM3/8/16
to closure-compiler
Is this on http://closure-compiler.appspot.com or http://closure-compiler-debugger.appspot.com ? I looked briefly and I don't see anything unusual on the appengine console for either one so I'm not sure what would cause this.

--

---
You received this message because you are subscribed to the Google Groups "Closure Compiler Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-compiler-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/closure-compiler-discuss/b2d76b77-4fb7-424a-a70a-6da4b203e625%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

John Lenz

unread,
Mar 8, 2016, 11:16:08 PM3/8/16
to closure-compiler

Are you sure you aren't behind a proxy?

--

Simon H

unread,
Mar 9, 2016, 3:48:20 AM3/9/16
to Closure Compiler Discuss
Hi,


I call the compiler from IP 62.210.94.220, which is only used by my server. Could it be that the compilation limit is based on the first 3 digits in the IP address, so if someone with an IP starting with 62.210.94. uses the closure compiler a lot, it would affect my limit ?

This is the PHP code I use for compilation :

$ch = curl_init('http://closure-compiler.appspot.com/compile');
 curl_setopt
($ch, CURLOPT_POST, true);
 curl_setopt
($ch, CURLOPT_RETURNTRANSFER, true);
 curl_setopt
($ch, CURLOPT_HTTPHEADER, array('Content-type: application/x-www-form-urlencoded'));
 curl_setopt
($ch, CURLOPT_POSTFIELDS, 'output_info=compiled_code&output_format=text&compilation_level=SIMPLE_OPTIMIZATIONS&js_code=' . urlencode($sIn));
 curl_setopt
($ch, CURLOPT_FOLLOWLOCATION, false);
 curl_setopt
($ch, CURLOPT_CONNECTTIMEOUT, 15);
 $sOut
= curl_exec($ch);
curl_close
($ch);

Kind regards
  Simon

Simon H

unread,
Mar 9, 2016, 4:27:37 AM3/9/16
to Closure Compiler Discuss
Just a follow-up :

I have made a live compilation tester at http://62.210.94.220/ in case it can be used to track down the problem.

Simon H

unread,
Mar 9, 2016, 5:16:46 AM3/9/16
to Closure Compiler Discuss
And one more follow-up :

I just found out that I had overlooked some test code calling the closure compiler, causing the "limit" error. So sorry for wasting your time on this non-issue!

Kind regards
  Simon
Reply all
Reply to author
Forward
0 new messages