Traceback (most recent call last):


 "/usr/local/bin/sam", line 33, in <module>

sys.exit(load_entry_point('aws-sam-cli==1.16.0', 'console_scripts', 'sam')())


 "/usr/local/Cellar/aws-sam-cli/1.16.0/libexec/lib/python3.8/site-packages/click/core.py", line 829, in __call__

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


 "/usr/local/Cellar/aws-sam-cli/1.16.0/libexec/lib/python3.8/site-packages/click/core.py", line 782, in main

rv = self.invoke(ctx)


 "/usr/local/Cellar/aws-sam-cli/1.16.0/libexec/lib/python3.8/site-packages/click/core.py", line 1259, in invoke

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


 "/usr/local/Cellar/aws-sam-cli/1.16.0/libexec/lib/python3.8/site-packages/click/core.py", line 1066, in invoke

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


 "/usr/local/Cellar/aws-sam-cli/1.16.0/libexec/lib/python3.8/site-packages/click/core.py", line 610, in invoke

return callback(*args, **kwargs)


 "/usr/local/Cellar/aws-sam-cli/1.16.0/libexec/lib/python3.8/site-packages/click/decorators.py", line 73, in new_func

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


 "/usr/local/Cellar/aws-sam-cli/1.16.0/libexec/lib/python3.8/site-packages/click/core.py", line 610, in invoke

return callback(*args, **kwargs)


 "/usr/local/Cellar/aws-sam-cli/1.16.0/libexec/lib/python3.8/site-packages/samcli/lib/telemetry/metric.py", line 152, in wrapped

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


 "/usr/local/Cellar/aws-sam-cli/1.16.0/libexec/lib/python3.8/site-packages/samcli/lib/telemetry/metric.py", line 121, in wrapped

return_value = func(*args, **kwargs)


 "/usr/local/Cellar/aws-sam-cli/1.16.0/libexec/lib/python3.8/site-packages/samcli/commands/validate/validate.py", line 32, in cli

do_cli(ctx, template_file)
# pragma: no cover


 "/usr/local/Cellar/aws-sam-cli/1.16.0/libexec/lib/python3.8/site-packages/samcli/commands/validate/validate.py", line 52, in do_cli

validator.is_valid()


 "/usr/local/Cellar/aws-sam-cli/1.16.0/libexec/lib/python3.8/site-packages/samcli/commands/validate/lib/sam_template_validator.py", line 61, in is_valid

template = sam_translator.translate(sam_template=self.sam_template, parameter_values={})


 "/usr/local/Cellar/aws-sam-cli/1.16.0/libexec/lib/python3.8/site-packages/samtranslator/translator/translator.py", line 95, in translate

sam_parameter_values.add_pseudo_parameter_values()


 "/usr/local/Cellar/aws-sam-cli/1.16.0/libexec/lib/python3.8/site-packages/samtranslator/sdk/parameter.py", line 73, in add_pseudo_parameter_values

if region.startswith("cn-"):
AttributeError: 'NoneType' object has no attribute 'startswith'

Traceback (most recent call last):


 "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app

response = self.full_dispatch_request()


 "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1614, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1517, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request

rv = self.dispatch_request()


 "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/usr/local/lib/python2.7/dist-packages/flask_appbuilder/security/decorators.py", line 52, in wraps

return f(self, *args, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/superset/models/core.py", line 899, in wrapper

value = f(*args, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/superset/views/core.py", line 2458, in sql_json

if data.get('status') == QueryStatus.FAILED:
AttributeError: 'str' object has no attribute 'get'
