Exception after upgrading 0.13.1 -> 0.14.0
See original GitHub issueHello.
Function flask_rest_api/utils.unpack_tuple_response
checks that result returned is a tuple and tries to unpack it.
This is not working if i’m returning tuple-like object, for example sqlalchemy result object (which can be a tuple subclass) or namedtuple. All this objects pass isinstance(rv, tuple)
.
Issue Analytics
- State:
- Created 4 years ago
- Comments:16 (6 by maintainers)
Top Results From Across the Web
Upgrading Hive-0.13.1 to Hive-0.14.0 version 2
This error message is due to the mismatch of versions of hive metastore, Hive-0.14.0 requires the metastore schema version to be upgraded. This ......
Read more >Terraform AWS Provider Version 3 Upgrade Guide
Version 3.0.0 of the AWS provider for Terraform is a major release and includes some changes that you will need to consider when...
Read more >Upgrading - radiac.net
Since 0.8.0, a ValueError exception is raised if a tag model field definition specifies both a tag model and tag options. For custom...
Read more >Manuskript 0.14.0
Manuskript 0.14.0 is here! This is mostly a bug-fix release. So there are not many new shiny features. However this release will hopefully ......
Read more >AIOHTTP failing to update when trying to upgrade to 0.38.x
I am having a problem when trying to update to HASS 0.38.x. ... 0.10.0, 0.10.1, 0.10.2, 0.11.0, 0.12.0, 0.13.0, 0.13.1, 0.14.0, 0.14.1, ...
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
OK, this one acts somewhat like a namedtuple but is not a namedtuple. Good. Let’s go for direct type check.
You can see examples in my previous messages. Also this is stated in documentation https://docs.sqlalchemy.org/en/latest/orm/query.html#sqlalchemy.util.KeyedTuple
Example query:
Also sqlalchemy core returns lists and tuples too.