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
'Couldn't convert to json: Error(Json(Error("invalid type: map, expected unit struct Empty", line: 1, column: 0)))'
With a snipped stack trace of:
10: core::result::unwrap_failed
at /rustc/eae3437dfe991621e8afdc82734f4a172d7ddf9b/src/libcore/macros.rs:18
11: core::result::Result<T,E>::expect
at /rustc/eae3437dfe991621e8afdc82734f4a172d7ddf9b/src/libcore/result.rs:827
12: google_pubsub1::resources::projects::subscriptions::DeleteRequestBuilder::_execute
at /Users/jason/src/generated/gen/pubsub/v1/lib/src/lib.rs:3863
13: google_pubsub1::resources::projects::subscriptions::DeleteRequestBuilder::execute_with_fields
at /Users/jason/src/generated/gen/pubsub/v1/lib/src/lib.rs:3853
14: google_pubsub1::resources::projects::subscriptions::DeleteRequestBuilder::execute_with_default_fields
at /Users/jason/src/generated/gen/pubsub/v1/lib/src/lib.rs:3830
15: gcp_utils::pubsub::tests::init
at gcp-utils/src/pubsub.rs:21
(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:
If I instead use execute_with_fields(Some("*")) instead of execute_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).
The text was updated successfully, but these errors were encountered:
I pushed aa08905, 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.
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).The text was updated successfully, but these errors were encountered: