Open binarybana opened 5 years ago
I also just hit this for client.projects().subscriptions().acknowledge(...
as well.
I pushed https://github.com/google-apis-rs/generator/commit/aa0890541a82330db7abd5d54c92c400825e8094, which should fix the generator if I understand the issue correctly. I'm not very familiar with how to regenerate the apis in the generated directory unfortunately. I just tried a number of things, but they failed with errors (which sadly matches all my previous experiences). @Byron will know how to regenerate those libs when he sees this.
I have regenerated all APIs with just refresh-all
, and I hope it helps, @binarybana .
Besides that, maybe @ggriffiniii could give me a hint to be able to fix whatever issue is preventing you from doing the same.
Thanks everyone for the enthusiasm :), I can't wait to see this iteration of google-apis-rs
in its full async glory!
When trying to delete a pubsub subscription using latest master of the
generated/gen/pubsub/v1/lib
crate:Returns an error like this:
With a snipped stack trace of:
(the line numbers may not match exactly because I inserted a few lines of debugging help)
Whereas the actual reqwest response that comes back is successful:
It looks like the
Ok
variant return type ofpubsub::v1::lib::DeleteRequestBuilder::execute_with_default_fields
is wrongly set toEmpty
:But I'm not sure what it should be set to?
If I instead use
execute_with_fields(Some("*"))
instead ofexecute_with_default_fields
I can work around it, but I need to add an extra.map(|_: serde_json::Value| ());
on the end to help type inference (I'm assuming).