Empty body with 200 response to Sales endpoint

jeffreymbjeffreymb Posts: 4Member
edited June 12 in Development
Every time I execute the following (sanitized) request I get a 200 response, but an empty response body. Very occasionally I'll get a 502 response.


I suspect it is something similar to https://community.lightspeedhq.com/en/discussion/473/empty-results-from-order-endpoint, but since I'm only requesting a single item, it seems a little hard to imagine. Any help from the Lightspeed staff?

My guess is that there is some corrupted data or something.

2 comments

  • jeffreymbjeffreymb Posts: 4Member
    I've narrowed it down to a specific sale. This sale has 3,546 lines, which, similar to the issue with the orders endpoint I linked above, is probably causing the server's php process to hit the memory_limit.
  • jamesratcliffejamesratcliffe Posts: 154Administrator, Lightspeed Staff moderator
    @jeffreymb Yes, it's probably a memory error. Can you send me the accountID and saleID in a private message? Thanks.
    James Ratcliffe
    API Integrations Specialist
    Lightspeed HQ
Sign In or Register to comment.