fastapi-start
fastapi-start copied to clipboard
FastAPI脚手架:用于系统后端接口项目的
app = FastAPI( debug=DEBUG, title=title, description=description, version=version, # docs_url=None, # 关闭原有的文档地址,这里不能关闭,不然两个文档界面都出不来 responses={'default': {"description": "异常相应值见文档说明"}}, )
UnicodeDecodeError: 'gbk' codec can't decode byte 0x8e in position 8: illegal multibyte sequence 
$ fas Traceback (most recent call last): File "/Users/liheng/.pyenv/versions/3.9.6/envs/fastapistart/bin/fas", line 33, in sys.exit(load_entry_point('fastapi-start==0.6.8', 'console_scripts', 'fas')()) File "/Users/liheng/.pyenv/versions/3.9.6/envs/fastapistart/bin/fas", line 22, in importlib_load_entry_point for entry_point in distribution(dist_name).entry_points File "/Users/liheng/.pyenv/versions/3.9.6/lib/python3.9/importlib/metadata.py", line 524, in...
``` Process SpawnProcess-1: Traceback (most recent call last): File "/opt/homebrew/Cellar/[email protected]/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap self.run() File "/opt/homebrew/Cellar/[email protected]/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/opt/homebrew/lib/python3.11/site-packages/uvicorn/_subprocess.py", line 78, in subprocess_started target(sockets=sockets)...