ERROR executing Lambda function: Traceback (most recent call last):


 "/opt/code/localstack/localstack/mock/apis/lambda_api.py", line 180, in run_lambda

if func.func_code.co_argcount == 2:
AttributeError: 'NoneType' object has no attribute 'func_code'

Traceback (most recent call last):


 "/root/.local/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app

response = self.full_dispatch_request()


 "/root/.local/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/root/.local/lib/python3.8/site-packages/flask_cors/extension.py", line 165, in wrapped_function

return cors_after_request(app.make_response(f(*args, **kwargs)))


 "/root/.local/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/root/.local/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise

raise value


 "/root/.local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request

rv = self.dispatch_request()


 "/root/.local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request

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


 "/root/.local/lib/python3.8/site-packages/connexion/decorators/decorator.py", line 48, in wrapper

response = function(request)


 "/root/.local/lib/python3.8/site-packages/connexion/decorators/security.py", line 326, in wrapper

request.context['user'] = token_info.get('sub', token_info.get('uid'))
AttributeError: 'tuple' object has no attribute 'get'
