Setup Tests Fail With a WebSocket Error After 5 Minutes
Issue
Setup tests take longer than expected. After 5 minutes, a WebSocket error appears, even though AWS Lambda logs show that the test completed successfully.
Environment
Connector: AWS Lambda
Resolution
To resolve this issue, do the following:
- Modify the Lambda function to ensure it returns a response within 5 minutes.
- Reduce the response payload size to improve execution speed.
Cause
This issue occurs when the Lambda function that processes the setup test takes longer than 5 minutes to respond, causing the WebSocket connection to time out. When this happens, the setup tests won't pass, but the function may still complete and log success in AWS, even though we didn't receive the response.