Python烧瓶docker化的Web应用程序api不返回响应错误:BrokenFilesystemWarning

我正在使用python 2.7和烧瓶,返回我的本地设置的完整响应。 现在应用程序被docker化并部署在Google kubernetes容器中。 这是POST方法的一个示例API,它将input作为application / jsoninput,当前内部函数能够以JSON格式获取数据,但不返回到客户端。

Python部分:

from flask import Flask, render_template, request, jsonify from flask_cors import CORS, cross_origin import sys from runmodel import run reload(sys) # Reload is a hack sys.setdefaultencoding('UTF8') app = Flask(__name__, static_url_path='/static') CORS(app) @app.route("/modelrun", methods=['POST']) def modelrun(): """TO run the model and get data to populate""" req_data = request.json res = run(req_data) #another function return the data it will return json format return jsonify(res) 

我目前的问题是我没有得到完整的响应,它的返回ValueError:View函数没有返回响应/ / Werkzeugdebugging器在Web浏览器中。

这里是日志和Traceback:

 labels{ container.googleapis.com/stream: "stderr" } BrokenFilesystemWarning) severity: "ERROR" textPayload: " BrokenFilesystemWarning) 

Interesting Posts