from_any_pb
gives a useless error message when the type names don't match.
#711
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
google-api-core
version:pip show google-api-core
= 2.19.2Steps to reproduce
Try to decode an
Any
with the wrong type path.The error is like:
I had to go way down in the debugger to find that the actual problem was the different versions:
Code example
In this Colab example, the API doesn't know what version the client library is calling with and returns an
Any
with a mismatched-version.https://colab.research.google.com/drive/1m6KLCvp2l1oD32cnIsaBLN5ecmbFNncI?resourcekey=0-hivajkhDg2FA5Sec3pTu4w&usp=sharing
Stack trace
The text was updated successfully, but these errors were encountered: