502 Bad Gateway while getting AbandonedCheckout

Topic summary

502 Bad Gateway error occurs when fetching AbandonedCheckouts via the Python SDK. Reducing PAGE_SIZE did not help.

Tried API versions 2021-10 and 2022-07; the error persists across both versions. A stack trace was attached for context.

The author is requesting assistance. No solutions or follow-ups are provided yet, so the issue remains open.

Summarized with AI on February 10. AI used: gpt-5.

Hi,

We are getting a 502 bad gateway error while trying to fetch AbandonedCheckouts using python sdk. Decreasing the PAGE_SIZE is also not helping. We are using version 2021-10. We also tried using version 2022-07 but the error stays the same. I am attaching the stack trace here.

Can you please help?

Thanks,

Rahul