这里输入城市名称,获数据时,抛出一个错误,不输入城市名称是正常的。
stapi/encoders.py", line 145, in jsonable_encoder
return jsonable_encoder(
File "/Users/mecilmeng/miniforge3/envs/fastapi/lib/python3.10/site-packages/fastapi/encoders.py", line 101, in jsonable_encoder
encoded_value = jsonable_encoder(
File "/Users/mecilmeng/miniforge3/envs/fastapi/lib/python3.10/site-packages/fastapi/encoders.py", line 145, in jsonable_encoder
return jsonable_encoder(
File "/Users/mecilmeng/miniforge3/envs/fastapi/lib/python3.10/site-packages/fastapi/encoders.py", line 101, in jsonable_encoder
encoded_value = jsonable_encoder(
File "/Users/mecilmeng/miniforge3/envs/fastapi/lib/python3.10/site-packages/fastapi/encoders.py", line 145, in jsonable_encoder
return jsonable_encoder(
File "/Users/mecilmeng/miniforge3/envs/fastapi/lib/python3.10/site-packages/fastapi/encoders.py", line 145, in jsonable_encoder
return jsonable_encoder(
File "/Users/mecilmeng/miniforge3/envs/fastapi/lib/python3.10/site-packages/fastapi/encoders.py", line 101, in jsonable_encoder
encoded_value = jsonable_encoder(
File "/Users/mecilmeng/miniforge3/envs/fastapi/lib/python3.10/site-packages/fastapi/encoders.py", line 145, in jsonable_encoder
return jsonable_encoder(
File "/Users/mecilmeng/miniforge3/envs/fastapi/lib/python3.10/site-packages/fastapi/encoders.py", line 101, in jsonable_encoder
encoded_value = jsonable_encoder(
File "/Users/mecilmeng/miniforge3/envs/fastapi/lib/python3.10/site-packages/fastapi/encoders.py", line 145, in jsonable_encoder
return jsonable_encoder(
File "/Users/mecilmeng/miniforge3/envs/fastapi/lib/python3.10/site-packages/fastapi/encoders.py", line 145, in jsonable_encoder
return jsonable_encoder(
File "/Users/mecilmeng/miniforge3/envs/fastapi/lib/python3.10/site-packages/fastapi/encoders.py", line 101, in jsonable_encoder
encoded_value = jsonable_encoder(
File "/Users/mecilmeng/miniforge3/envs/fastapi/lib/python3.10/site-packages/fastapi/encoders.py", line 145, in jsonable_encoder
return jsonable_encoder(
File "/Users/mecilmeng/miniforge3/envs/fastapi/lib/python3.10/site-packages/fastapi/encoders.py", line 101, in jsonable_encoder
encoded_value = jsonable_encoder(
File "/Users/mecilmeng/miniforge3/envs/fastapi/lib/python3.10/site-packages/fastapi/encoders.py", line 145, in jsonable_encoder
return jsonable_encoder(
File "/Users/mecilmeng/miniforge3/envs/fastapi/lib/python3.10/site-packages/fastapi/encoders.py", line 52, in jsonable_encoder
if isinstance(obj, BaseModel):
File "/Users/mecilmeng/miniforge3/envs/fastapi/lib/python3.10/abc.py", line 119, in __instancecheck__
return _abc_instancecheck(cls, instance)
RecursionError: maximum recursion depth exceeded in comparison