Skip to content

Commit

Permalink
Add further message to lambda errorMessage handling
Browse files Browse the repository at this point in the history
  • Loading branch information
MediaMarco committed Jun 3, 2024
1 parent bb7c216 commit 96f127a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void takeScreenshots(List<ScreenshotContext> screenshotContexts) throws E
LOG.error("Log: {}", logResult);
}
if (answer.contains("errorMessage")) {
if (answer.contains("SessionNotCreatedException") || answer.contains("disconnected: Unable to receive message from renderer")) {
if (answer.contains("SessionNotCreatedException") || answer.contains("disconnected: Unable to receive message from renderer") || answer.contains("disconnected: not connected to DevTools")) {
LOG.warn("Retrying lambda call because of specific error message in answer: '{}'", answer);
//Do one retry if browser crashed in lambda
Future<InvokeResponse> invokeResponseFuture = invokeLambdaAndGetInvokeResponseFuture(lambdaCall.getKey(), runId, lambdaClient);
Expand Down

0 comments on commit 96f127a

Please sign in to comment.