We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
req_body = request.get_json() if request.get_json() else {} 这里报错(我是在小程序端调用) raise BadRequest("Failed to decode JSON object: {0}".format(e)) 那行加了try···except···后log输出 "path": {}, "query": {}, "body": {} 可能是request没有获得参数?
req_body = request.get_json() if request.get_json() else {}
raise BadRequest("Failed to decode JSON object: {0}".format(e))
"path": {}, "query": {}, "body": {}
The text was updated successfully, but these errors were encountered:
apply_request_log方式必须是debug模式下运行,线上直接使用会报错
请修改app/config/secure.py中配置项 DEBUG = False
在app/init.py就能正常运行 if app.config['DEBUG']: apply_request_log(app) # 打印请求日志
Sorry, something went wrong.
No branches or pull requests
req_body = request.get_json() if request.get_json() else {}
这里报错(我是在小程序端调用)
raise BadRequest("Failed to decode JSON object: {0}".format(e))
那行加了try···except···后log输出
"path": {}, "query": {}, "body": {}
可能是request没有获得参数?
The text was updated successfully, but these errors were encountered: