Traceback (most recent call last):


 "/home/linuxbrew/.linuxbrew/bin/sam", line 11, in <module>

load_entry_point('aws-sam-cli==0.47.0', 'console_scripts', 'sam')()


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/click/core.py", line 829, in __call__

return self.main(*args, **kwargs)


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/click/core.py", line 782, in main

rv = self.invoke(ctx)


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/click/core.py", line 1259, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/click/core.py", line 1066, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/click/core.py", line 610, in invoke

return callback(*args, **kwargs)


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/click/decorators.py", line 73, in new_func

return ctx.invoke(f, obj, *args, **kwargs)


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/click/core.py", line 610, in invoke

return callback(*args, **kwargs)


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/samcli/lib/telemetry/metrics.py", line 96, in wrapped

raise exception
# pylint: disable=raising-bad-type


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/samcli/lib/telemetry/metrics.py", line 62, in wrapped

return_value = func(*args, **kwargs)


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/samcli/commands/package/command.py", line 100, in cli

ctx.profile,


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/samcli/commands/package/command.py", line 130, in do_cli

package_context.run()


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/samcli/commands/package/package_context.py", line 95, in run

exported_str = self._export(self.template_file, self.use_json)


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/samcli/commands/package/package_context.py", line 110, in _export

exported_template = template.export()


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/samcli/lib/package/artifact_exporter.py", line 639, in export

self.template_dict = self.export_metadata(self.template_dict)


 "/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/0.47.0/libexec/lib/python3.7/site-packages/samcli/lib/package/artifact_exporter.py", line 594, in export_metadata

if "Metadata" not in template_dict:
TypeError: argument of type 'NoneType' is not iterable

Traceback (most recent call last):


 "<string>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128)
