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.

Exception after upgrading 0.13.1 -> 0.14.0

See original GitHub issue

Hello.

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:closed
  • Created 4 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
lafrechcommented, Apr 3, 2019

OK, this one acts somewhat like a namedtuple but is not a namedtuple. Good. Let’s go for direct type check.

1reaction
asynceecommented, Apr 3, 2019

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:

Using orm:
rows = sess.query(Foo.a, Foo.b, Foo.c).all()

Also sqlalchemy core returns lists and tuples too.

Read more comments on GitHub >

github_iconTop 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 >

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