aws-lambda-swift
aws-lambda-swift copied to clipboard
Fix: Random Crash #9
Hi, It seems the lambda crashes because of the unwrapped optional.
Sorry, it did't solve. It happened again.
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.