'500 code response from API gateway - EC2 Private IP with VPC Link

I have an application running on EC2, and I'm trying to use the Private IP to integrate with API gateway and a VPC Link.

I get a 500 response code from postman when i integrate the private IP with api gateway the cloudwatch logs did not also throw any errors, but when i use the public IP it's all good.

What could be wrong?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source