question

aditya avatar image
aditya asked bryanvargas answered

502 bad gateway response while querying orders in sandbox

We are fetching orders with these filters

expand=lineItems,serviceCharge,discounts,credits,payments,refunds,payment.tender,lineItems.discounts,lineItems.modifications&limit=100&filter=modifiedTime>=1702394928524

and getting this in return

 <html><body><h1>502 Bad Gateway</h1>
The server returned an invalid or incomplete response.
</body></html>

Same API calls are working fine in Production environment and works for 10-15% of the time in sandbox environment too and fails with 502 bad gateway for the rest of 80-85% if the time.

OrdersSandbox
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
bryanvargas avatar image
bryanvargas answered

I just ran the request in sandbox and it seems to be working fine. Please try again on your end and let me know if you are still having issues.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community