Daniel Bankhead
Daniel Bankhead
I think @alexander-fenster is right; the `GrpcClientOptions` expects an instance of `GoogleAuth` rather than `AuthClient`. Technically, the auth library is behaving as intended (nothing to fix/change here).
Related: https://github.com/googleapis/gax-nodejs/issues/1408
Added `do not merge` until we upgrade to Node 16+.
Fixed via https://github.com/googleapis/nodejs-storage/pull/2234
Related: - https://github.com/googleapis/nodejs-common/pull/813
This utility may help: https://github.com/googleapis/nodejs-storage/blob/0ddef7e81d86c0f12c0cfeb49dd7b8e8ba8f1822/src/util.ts#L18-L29
Resolved as of: https://github.com/GoogleCloudPlatform/python-docs-samples/pull/8395
Hey @TeemuKoivisto, thanks for your feature request. Your `wrapGaxiosError` function should work for your needs. Today, it isn't a common convention to return errors without throwing (except for callbacks).
Resolving shortly via: - https://github.com/googleapis/gaxios/pull/614
It looks like it was passed to [`node-fetch` v2](https://github.com/node-fetch/node-fetch/tree/2.x) here: https://github.com/googleapis/gaxios/blob/8490f242e798a3338642c689a1b3ffc15cbfd447/src/gaxios.ts#L139-L142 However, we should update this to work with any fetch implementation - I'll convert this to a feature request....