-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vision: Operation returned from 'purge_product: raises TypeError in 'done'. #9150
Comments
@dizcology At the point that the exception is raised, can you print out the repr of |
Thanks @tseaver When the exception is raised I got this:
it might be that the library was trying to convert the response to type Empty? |
@dizcology Looks to me like the // `Operation.response` contains `ImportProductSetsResponse`. (results) |
Thanks @tseaver - does this mean that the comment markup is used in GAPIC library generation for specifying the message types? |
@dizcology I'm not sure: the code which actually parses all that out (in repo https://github.com/googleapis/gapic-generator/) is too arcane for me to read. |
@lukesneeringer, @busunkim96 Can one of you confirm that the comment in the |
Some more information: Comparing with the import product set call (which also returns an LRO), I am seeing different For import product set:
Whereas for purge product:
What I am having a hard time tracking down is how and where this |
@dizcology Would you expect the response to be |
It looks like the return types are set in the GAPIC config: There is also a way to specify return type via proto annotations using I see other APIs with similar configurations for LROs that don't seem to have issues. 🤔 |
This has been resolved with a change in the Backend. |
Environment details
Steps to reproduce
operation.done()
Code example
see PR linked above.
Stack trace
The text was updated successfully, but these errors were encountered: