Unable to use npm modules sync-rest and retus

I’m trying to use https://www.npmjs.com/package/sync-request module for making synchronous HTTP requests. The app works in local setup. However, the HTTP call using module fails with “not a function” error when the app is deployed as a custom app.

1 Like

Hi @Sharon_Kumar,

Once deployed as custom app, the mentioned packages are automatically fetched for the app by our AWS infrastructure. There can be a possibility that this package is blocked as synchronous requests may cause the browsers/web applications to hang.

However, let me take some time to confirm this and get back to you.

On the landing page of this npm package, it is recommended to use then-request which is suitable for production scale applications. Can that package help you achieve the goals that you are looking for?

This topic was automatically closed after 14 days. New replies are no longer allowed.