getting 502 in analytics web api call in 2.24

After updating 2.24 from revision 02e7467 to acdc17b I started getting 502 Bad Gateway error back when sending a number of small analytics calls in sequence. It used to work in revision 02e7467. Any ideas?