The Lightspeed server returned an invalid HTTP code: 502

juraj_tothjuraj_toth Member Posts: 4
edited April 16 in Development


our Lightspeed (US shop) integration suddenly stopped working after almost 2 years. When trying to retrieve new orders and create them in our ERP via an API integration we have with Lightspeed, we get the following error 'The Lightspeed server returned an invalid HTTP code: 502'.

Currently we have no other option than create those orders in our ERP (NetSuite) manually to be able to process them further.


Please not that:

- the calls to the EU web shop are not failing

- a specific call to the US web shop is failing, the one where a custom script is sending specific order numbers

- this call fails returning a server error from the Lightspeed side (502 bad gateway)

- We tried the same exact call from postman (a client tool to test HTTP calls), and it is not failing, so the problem is when the call is originated from NetSuite


Can you please tell us why this call is failing?


Please bear in mind that a manual test with postman is working fine.

The following details should be enough to investigate the issue:

- webshop ID: 611963

- timestamp of a call that returned the error: 2020-04-12T21:18:53 GMT

- URL called (same that worked with the manual test): https://api.shoplightspeed.com/en/orders.json?number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23965&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD24000&number[]=ORD24001&number[]=ORD24002&number[]=ORD24004&number[]=ORD24012&number[]=ORD24013&number[]=ORD24014&number[]=ORD23327&number[]=ORD23493&number[]=ORD23491&number[]=ORD23620&number[]=ORD23652&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620&number[]=ORD23652&number[]=ORD23620


Thank you!

Kind regards,

Juraj

Post edited by juraj_toth on
Tags:

1 comment

  • LucienVersendaalLucienVersendaal Moderator, Lightspeed Staff Posts: 199 moderator
    edited April 20

    Hi @juraj_toth,

    Thank you for reaching out to us. Sorry for delay in my reply.

    For what I can see is that you're trying to get 2 orders based on the call you're making for ORD23620 and ORD23652.

    Why are you making such a long call for only 2 orders? I guess this will trigger the error. If you want to make a call to specific orders you can use this call:

    /orders.json?number[]=ORD23620&number[]=ORD23652
    

    I hope this helps.

    Post edited by LucienVersendaal on
Sign In or Register to comment.