You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
google-api-core version: pip show google-api-core = 2.19.2
Steps to reproduce
Try to decode an Any with the wrong type path.
The error is like:
TypeError: Could not convert `Any` to `PredictLongRunningResponse`
I had to go way down in the debugger to find that the actual problem was the different versions:
TypeError: Could not convert
Any[google.ai.generativelanguage.v1main.PredictLongRunningResponse] to
google.ai.generativelanguage.v1beta.PredictLongRunningResponse
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.
Environment details
google-api-coreversion:pip show google-api-core= 2.19.2Steps to reproduce
Try to decode an
Anywith 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
Anywith a mismatched-version.https://colab.research.google.com/drive/1m6KLCvp2l1oD32cnIsaBLN5ecmbFNncI?resourcekey=0-hivajkhDg2FA5Sec3pTu4w&usp=sharing
Stack trace