Traceback (most recent call last):


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/werkzeug/serving.py", line 323, in run_wsgi

execute(self.server.app)


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/werkzeug/serving.py", line 312, in execute

application_iter = app(environ, start_response)


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/moto/server.py", line 168, in __call__

return backend_app(environ, start_response)


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/flask/app.py", line 2464, in __call__

return self.wsgi_app(environ, start_response)


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/flask/app.py", line 2450, in wsgi_app

response = self.handle_exception(e)


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/flask_cors/extension.py", line 165, in wrapped_function

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


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/flask_cors/extension.py", line 165, in wrapped_function

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


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/flask/app.py", line 1867, in handle_exception

reraise(exc_type, exc_value, tb)


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise

raise value


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app

response = self.full_dispatch_request()


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/flask_cors/extension.py", line 165, in wrapped_function

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


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/flask_cors/extension.py", line 165, in wrapped_function

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


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise

raise value


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request

rv = self.dispatch_request()


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request

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


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/moto/core/utils.py", line 146, in __call__

result = self.callback(request, request.url, {})


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/moto/s3/responses.py", line 238, in ambiguous_response

return self.bucket_response(request, full_url, headers)


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/moto/s3/responses.py", line 247, in bucket_response

response = self._bucket_response(request, full_url, headers)


 "/opt/code/localstack/.venv/lib/python3.8/site-packages/moto/s3/responses.py", line 285, in _bucket_response

body = body.decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

[ERROR
] An exception occurred in this state: Traceback (most recent call last):


 "/usr/lib/python3/dist-packages/salt/state.py", line 1981, in call

**cdata['kwargs'])


 "/usr/lib/python3/dist-packages/salt/loader.py", line 1977, in wrapper

return f(*args, **kwargs)


 "/usr/lib/python3/dist-packages/salt/states/mysql_user.py", line 142, in present

**connection_args):


 "/usr/lib/python3/dist-packages/salt/modules/mysql.py", line 1266, in user_exists

server_version = salt.utils.data.decode(version(**connection_args))


 "/usr/lib/python3/dist-packages/salt/modules/mysql.py", line 858, in version

dbc = _connect(**connection_args)


 "/usr/lib/python3/dist-packages/salt/modules/mysql.py", line 392, in _connect

dbc = MySQLdb.connect(**connargs)


 "/usr/lib/python3/dist-packages/MySQLdb/__init__.py", line 86, in Connect

return Connection(*args, **kwargs)


 "/usr/lib/python3/dist-packages/MySQLdb/connections.py", line 172, in __init__

for k, v in conv.items():
AttributeError: 'str' object has no attribute 'items'
