宝塔面板后台下载,TypeError: send_file() got an unexpected keyword argument ‘add_etags’报错解决方法
Traceback (most recent call last): File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2525, in wsgi_app response = self.full_dispatch_request() File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1822, in full_dispatch_request rv = self.handle_user_exception(e) File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1820, in full_dispatch_request rv = self.dispatch_request() File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1796, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/www/server/panel/BTPanel/__init__.py", line 943, in download cache_timeout=0) TypeError: send_file() got an unexpected keyword argument 'add_etags'
宝塔下载时提示:TypeError: send_file() got an unexpected keyword argument ‘add_etags’
/www/server/panel/pyenv/bin/pip install -U Flask==2.1.2
重启宝塔面板即可。
原创文章,作者:WanKe,如若转载,请注明出处:https://wankewu.com/linux/174.html