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):


 "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 194, in invoke

cmd_result = self.invocation.execute(args)


 "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 331, in execute

six.reraise(*sys.exc_info())


 "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise

raise value


 "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 304, in execute

result = cmd(params)


 "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 168, in __call__

return super(AzCliCommand, self).__call__(*args, **kwargs)


 "/opt/az/lib/python3.6/site-packages/knack/commands.py", line 109, in __call__

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


 "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 342, in default_command_handler

client = client_factory(self.cli_ctx, command_args) if client_factory else None


 "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/_client_factory.py", line 68, in blob_data_service_factory

sas_token=kwargs.pop('sas_token', None))


 "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/_client_factory.py", line 29, in generic_data_service_factory

return get_storage_data_service_client(cli_ctx, service, name, key, connection_string, sas_token)


 "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/_client_factory.py", line 24, in get_storage_data_service_client

endpoint_suffix=cli_ctx.cloud.suffixes.storage_endpoint)


 "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/client_factory.py", line 121, in get_data_service_client

if _ERROR_STORAGE_MISSING_INFO in str(exc):
TypeError: 'in <string>' requires string as left operand, not NoneType
