Jack2022
2022-03-16 17:28
Fatal Python error: Cannot recover from stack overflow.
Thread 0x000000030d348000 (most recent call first):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/fastapi/encoders.py", line 149 in jsonable_encoder
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/fastapi/encoders.py", line 96 in jsonable_encoder
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/fastapi/encoders.py", line 149 in jsonable_encoder
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/fastapi/encoders.py", line 149 in jsonable_encoder
# crud.py文件里有个错误 return db.query(models.Data).filter(models.Data.city.has(province=city)) '问题出现在这行代码,缺少了'.all() 。改为:return db.query(models.Data).filter(models.Data.city.has(province=city)).all()就可以了
高性能 FastAPI 框架入门精讲
12444 学习 · 87 问题
相似问题