question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webargs 6.0.0 breaks validation_middleware parsing

See original GitHub issue

Webargs 6.0.0 has changed the parse keyword argument from locations to location_loader causing the following exception on new builds of aiohttp-apispec:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp_apispec/middlewares.py", line 34, in validation_middleware
    schema["schema"], request, locations=schema["locations"]
TypeError: parse() got an unexpected keyword argument 'locations'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
maximdanilchenkocommented, Feb 28, 2020

@sad-boy-uoa thank you for the issue! I will fix it this week so far.

1reaction
maximdanilchenkocommented, Feb 28, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Webargs 6.0.0 has broken Flaskparser @use_kwargs: Never ...
It seems now the @use_kwargs decorator from the webargs.flaskparser completely fails to parse GET query string parameters or POST form-data ...
Read more >
Changelog - webargs 8.2.0 documentation
A new method, webargs.Parser.async_parse , can be used for async-aware parsing from the base parser class. This can handle async location loader functions ......
Read more >
Upgrading to Newer Releases - webargs 8.2.0 documentation
For example, a flask query string will be parsed into an ImmutableMultiDict type, which will break pre-load hooks which modify the data in-place....
Read more >
Release 8.2.0 unknown - Webargs
webargs is a Python library for parsing and validating HTTP request ... By default Webargs will automatically parse JSON request bodies.
Read more >
webargs 8.2.0 documentation
webargs is a Python library for parsing and validating HTTP request objects, with built-in support for popular web frameworks, including Flask, Django, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found