Have been running into inconsistent 502 errors on long-running paginated funcs pulling large amounts of info. Not sure, but potentially running into rate limiting or traffic issues perhaps. So, added sleeping to these funcs to prevent going over stated 60 requests per minute limit specified in EZO documentation.