When deploying from Posit Workbench to Posit Connect, you may see this error:
Error: Exception trying to connect to https://<URL> - Remote end closed connection without response
This can occur if you are using an AWS Network Load Balancer (NLB) in front of your NGINX Ingress.
Cause
The error is caused by the Preserve client IP addresses setting on the AWS NLB. When enabled, the NLB adds a PROXY protocol header that NGINX and Posit Connect are not configured to handle. This results in dropped connections.
Solution
To resolve this issue:
- Turn off Preserve client IP addresses in your AWS NLB target group.
- Save the changes and redeploy from Workbench to Connect.
Deployments should now succeed without error.
Additional notes:
If you're still having issues, you can reach out to Support by opening a ticket here.