Flask의 make_response에서 TypeError: The view function did not return a valid response. The return type must be a string, dict, tuple, Response instance, or WSGI callable, but it was a list.
from flask_marshmallow import Marshmallow ma = Marshmallow() class UserSchema(SQLAlchemyAutoSchema): class Meta: model = User users = [User(), User(), User(), ...] data = UserSchema().dump(users, many=True) res = make_response(data) File "C:\Users\...\flask\app.py", line 2127, in make_response raise TypeError( TypeError: The view function did not return a valid response. The return type must be ..
2021. 11. 3.