Flask-restx:在解析参数werkzeug时出现错误,无法解包的值太多

时间:2020-09-16 14:27:57

标签: python-3.x flask-restx

我正在使用flask-restx,并使用reqparse解析参数,但是突然开始从werkzeug中获取错误。

库版本: flask-restx == 0.2.0, Werkzeug == 0.15.5

File "/apps/v2/tags/routes.py", line 106, in get
    args = self.parser.parse_args()
File "/virtualenvs-apps/env/lib/python3.6/site-packages/flask_restx/reqparse.py", line 387, in parse_args
    value, found = arg.parse(req, self.bundle_errors)
File "/virtualenvs-apps/env/lib/python3.6/site-packages/flask_restx/reqparse.py", line 215, in parse
    source = self.source(request)
File "/virtualenvs-apps/env/lib/python3.6/site-packages/flask_restx/reqparse.py", line 153, in source
    values.update(value)
File "/virtualenvs-apps/env/lib/python3.6/site-packages/werkzeug/datastructures.py", line 627, in update
    ValueError: too many values to unpack (expected 2)

请帮帮我解决此问题。我在做错什么吗?

0 个答案:

没有答案