- Newest
- Most votes
- Most comments
An internal server error (HTTP status code 500) indicates that the service encountered an unexpected condition that prevented it from fulfilling the request. Based on the execution log you provided, the specific error is related to a certificate validation issue: "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target."
This error occurs when the system cannot establish a secure connection because it cannot validate the SSL/TLS certificate of the target endpoint. The API Gateway is unable to verify the certificate for the NLB endpoint you're trying to reach.
When you encounter an internal server error, you should:
- Try your request again, as some internal errors are temporary.
- If the problem persists, you may need to:
- Ensure the target endpoint has a valid and properly configured SSL/TLS certificate
- Check that the certificate authority (CA) is trusted
- Verify the certificate hasn't expired
- Make sure the hostname in the certificate matches the endpoint being called
For this specific certificate validation error, you'll need to address the SSL/TLS configuration between API Gateway and your NLB endpoint. If you continue to experience issues, contacting AWS Support would be recommended for further assistance.
Sources
InternalServerException - Amazon Managed Blockchain
InternalServerException - Multi-party approval
GetProfileUpdateTask - AWS Partner Central
Relevant content
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a year ago

Check if the certificate is valid or expired?