Unable to make request 502 Establish connection

I am unable to make a request on the custom installation page locally. It always throws an error like Error in establishing connections(502). The request made through the client.request method. But if we make the same call using Javascript native method like fetch.

Hi @Rajasingh_Selvakumar,

First of all, welcome to the community! :tada:

Have you got a chance to look at this topic on the similar issue?
The issue that you face could be the same if used to make requests to a private network or custom server. Please let us know if the requests are made to publicly available API endpoints.