Error: error:0307A071:bignum routines:BN_rand_range:too many iterations

79 views
Skip to first unread message

Leonardo Mejia

unread,
Dec 21, 2015, 9:47:32 AM12/21/15
to AdWords API Forum
I am getting Error: error:0307A071:bignum routines:BN_rand_range:too many iterations when trying to refresh token on a XAMPP install on my machine:


The error seems to be occuring here:

Error and Http Code results are as follows:
Error: error:0307A071:bignum routines:BN_rand_range:too many iterations
Httpcode: 0

There is a twist however:  If I run the same codebase through the debugger in Eclipse I don't get an error:

It runs as expected I get:
Httpcode: 200

The only difference other than it working correctly through eclipse is that the following line of code:

 $ch = $this->curlUtils->CreateSession($url); (line 119 in the MakeRequest() code) returns different values.

It returns a value of ch: Resource id  #51 when I run it through eclipse and  ch: Resource id #49 when I run it stand alone.

I hope this is enough information:  Any help is appreciated. 

Thank you.




Thanet Knack Praneenararat (AdWords API Team)

unread,
Dec 21, 2015, 10:03:07 PM12/21/15
to AdWords API Forum
Hi Leonardo,

That seems not to be an error from PHP nor our client lib.
And it seems an elusive problem that occurs in many cases.

For now, I'm not sure how XAMPP sets up your system (including curl), so we may need to make sure first where the problem occurred (your curl, PHP, or XAMPP).
But from what you said, Eclipse can run the file well so it may be possible that XAMPP uses different version of curl from that of Eclipse.

From what I've searched, it may worth trying 1) running the file without XAMPP 2) replacing curl in your system.
Another source hints that it may be related to CPU kernel too.

Best,
Thanet, AdWords API Team
Reply all
Reply to author
Forward
0 new messages