aws-lambda-swift icon indicating copy to clipboard operation
aws-lambda-swift copied to clipboard

Fix: Random Crash #9

Open Andrea-Scuderi opened this issue 6 years ago • 2 comments

Hi, It seems the lambda crashes because of the unwrapped optional.

Andrea-Scuderi avatar Aug 03 '19 20:08 Andrea-Scuderi

Sorry, it did't solve. It happened again.

Andrea-Scuderi avatar Aug 03 '19 21:08 Andrea-Scuderi

The crash shown in #9 is due to an unhandled try catch. Fixing this will show the error is related to URLRequest. Increasing the configuration.timeoutIntervalForRequest to 3600 sec, the lambda will wait for an hour before throwing an error. In theory, if there are no events for more than 20 min the lambda will be killed, so the next start will be cold start.

Andrea-Scuderi avatar Aug 04 '19 11:08 Andrea-Scuderi