Exception after upgrading to version 0.19.0 and 0.19.1
See original GitHub issueHi,
Python beginner here after updating to version 0.19.0 and 0.19.1 i get the following error when trying to run the Flask server. I don’t know much else than to include the traceback.
Traceback (most recent call last):
File "/Users/xyz/project1/api.py", line 65, in <module>
api.register_blueprint(blueprint.bp)
File "/Users/xyz/project1/python-helpers/python/flask_smorest/__init__.py", line 89, in register_blueprint
blp.register_views_in_doc(self._app, self.spec)
File "/Users/xyz/project1/python-helpers/python/flask_smorest/blueprint.py", line 189, in register_views_in_doc
method=method_l
File "/Users/xyz/project1/python-helpers/python/flask_smorest/response.py", line 172, in _prepare_response_doc
doc = deepupdate(doc, operation)
File "/Users/xyz/project1/python-helpers/python/flask_smorest/utils.py", line 18, in deepupdate
original[key] = deepupdate(original.get(key, {}), value)
File "/Users/xyz/project1/python-helpers/python/flask_smorest/utils.py", line 18, in deepupdate
original[key] = deepupdate(original.get(key, {}), value)
File "/Users/xyz/project1/python-helpers/python/flask_smorest/utils.py", line 20, in deepupdate
original[key] = value
TypeError: 'str' object does not support item assignment
I am using Python version 3.7.6 and I really like your library
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Unexpected error of Sentinel test after upgrading to 0.19.x
Hi Sentinel community, Since the release of version 0.19.x of Sentinel, our tests are failing with an unexpected exception.
Read more >Strange encoding related regression when upgrading to 0.19.0 ...
I ran into a strange regression in a test case when upgrading to 0.19.0. The test uses the Java API ... If its...
Read more >An error occurred while installing pg (0.19.0), and Bundler ...
In Ubuntu, You need to install libpq-dev package. Try this one: sudo apt-get install libpq-dev. For CentOS 7, You need install postgresql-devel package....
Read more >Upgrading to v1.0 - dbt Developer Hub
The packages argument of dispatch has been deprecated and will raise an exception when used. The "adapter_macro" macro has been deprecated. Instead, use...
Read more >SciPy 0.19.0 Release Notes — SciPy v1.7.0 Manual
#6715: DOC: update the release notes with BSpline et al. #6716: MAINT: scipy.io.wavfile: No infinite loop when trying to read… # ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, i’ll look into that.
Can confirm 0.19.2 works again for my case.
I’m not sure what you’re trying to achieve, but you shouldn’t have to do that.
The point of the 0.19 release is to auto-document error responses when possible. 422 errors are automatically documented already.
If you need to generate 422 errors inside your view function, just call
abort(422, errors={optional error structure})
and you’re done. No need for you to declare an error schema.Hopefully, this issue should be fixed and you should be able to see the errors described in the doc.
If you need a different error schema you may have to override stuff in the error handler.