Problem getting all products in ec2 and Lambda Aws
When I try to consume the products api in ec2 or in a Lambda aws the service throws request timed out. In local it works perfect.
This is the url.
https://api.shoplightspeed.com/us/products.json.
I have also added the offset, limit and load relations params but it doesn't work.
Does the api have any restrictions on Aws? any necessary configuration?
Post edited by LucienVersendaal on
8 comments
Hi @DiegoCorrea,
Thank you for contacting us.
The URL you're mentioning is for eCom, this also need some authentication. https://developers.lightspeedhq.com/ecom/introduction/authentication/
I have also added the offset, limit and load relations params but it doesn't work. This doesn't work this since this is used for Retail.
Sure!
The authentication is being carried out and sent through the headers. Without authentication it would not work for me even locally.
About the params, I understand. Thanks for the explication :)
Hi @LucienVersendaal
Do you have any idea what could be happening?
Hi @DiegoCorrea,
Can you show me the full request?
Of course. This is an example of how the Api is being consumed from Axios with nodejs .
Hi @DiegoCorrea,
Thanks.
I've tested your code locally and indeed this is working fine, and I'm getting data almost instantly. Can you try to get 2 products for example by using the limit param in the url.
https://api.shoplightspeed.com/us/products.json?limit=2
Can you test if this works for you or is this also give you a timeout?
Hi @LucienVersendaal
Yes, as I told you before, I have tried offset, limit and load relations as a parameter. I get timeout error in both cases.
Hi @DiegoCorrea,
I need to check with our dev team why this is happening. When I got something back from them, I will let you know directly.
Can you tell me the account/company id of the shop?