Flask报错The server encountered an internal error and was unable to complete your request. Either the

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

 

原因:可能是重复跑了好几次代码,导致服务器崩溃

方法1:关机重启,,不太方便

方法2:https://blog.csdn.net/weixin_41733260/article/details/100532091

一般flask启动时监听的是5000端口,如果修改的话更改后面的端口号

找出端口5000的进程,将进程杀死

netstat -ano | findstr 5000

taskkill /pid XXXXX /f                (XXXXX的地方用进程号替换)

你可能感兴趣的:(后台开发,flask,python)