Freshsales Product API request in a foreach returning 502 error

Hello everyone, hope all is good!

I’m developing a serverless custom app for Freshsales Suite. In this app, I’ve a business logic that involves the need to get all products (by ID) of a list of deals, in order to get a custom field in the product.

To execute this logic, I’m using a foreach loop on the array of deals, and then another foreach in the array of products that every deal has.

But the issue is that I keep receiving a 502 error on product’s GET API.

I made a single request in the code and it worked.

Is there a limitation for what I doing? Or is something that I’m missing?


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.