
Comment: An exception occurred in this state: Traceback (most recent call last):

 "/usr/lib/pymodules/python2.7/salt/state.py", line 1371, in call
**cdata['kwargs'])

 "/usr/lib/pymodules/python2.7/salt/states/file.py", line 2534, in append
for chunk in text:
TypeError: 'NoneType' object is not iterable
Changes:

An error occurred (InternalFailure) when calling the Invoke operation (reached max retries: 4): Error executing Lambda function: argument of type 'NoneType' is not iterable Traceback (most recent call last):


 "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 259, in run_lambda

event, context=context, version=version, async=async)


 "/opt/code/localstack/localstack/services/awslambda/lambda_executors.py", line 462, in execute

process.run()


 "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run

self._target(*self._args, **self._kwargs)


 "/opt/code/localstack/localstack/services/awslambda/lambda_executors.py", line 458, in do_execute

result = lambda_function(event, context)


 "/opt/code/localstack/localstack/services/awslambda/lambda_api.py", line 399, in execute

handler=arn_to_lambda[arn].handler, main_file=main_file)


 "/opt/code/localstack/localstack/services/awslambda/lambda_executors.py", line 477, in execute_java_lambda

if 'Records' in event:
TypeError: argument of type 'NoneType' is not iterable
