libs/error.py
libs/error_code.py
@api.route(’/test’, methods=[‘POST’])
def test_user():
c = Success()
return c
返回如下:
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.
有些奇怪,改写的我都写了,怎么就是不返回json呢?error.py里面也重写了get_headers了,启动文件ginger.py 也编写了framework_error但是就是返回html