我使用flask并尝试迁移到quart,以便从HTTP/2中获益。我使用flask-healthz进行kubernetes就绪和活动健康检查。是否有任何与flask-healthz等效的quart
我不确定它是否会工作,但尝试register_blueprint(healthz, url_prefix="/health")会抛出以下异常:
File "/app/src/app.py", line 37, in create_app
app.register_blueprint(healthz, url_prefix="/healthz")
File "/home/user/.local/lib/python3.9/site-packages/quart/app.py", line 507, in register_blueprint
blueprint.register(
File "/home/user/.local/lib/python3.9/site-packages/flask/blueprints.py", line 322, in register
state = self.make_setup_state(app, options, first_registration)
File "/home/user/.local/lib/python3.9/site-packages/flask/blueprints.py", line 250, in make_setup_state
return BlueprintSetupState(self, app, options, first_registration)
File "/home/user/.local/lib/python3.9/site-packages/flask/blueprints.py", line 76, in __init__
self.url_defaults.update(self.options.get("url_defaults", ()))
TypeError: 'NoneType' object is not iterable任何建议和见解都是值得感谢的。
发布于 2021-09-22 03:21:21
它使用以下修复:(1) import quart.flask_patch (2)将运行状况检查端点的scheme更改为HTTPS
https://stackoverflow.com/questions/69085486
复制相似问题