Immutable solution version
Google Secret Manager nodejs accessSecretVersion returns null with bluebird promise
Complete solution
The null result was caused by the bluebird promise library, which shims promises globally and breaks the google-cloud client internals. Removing the global bluebird shim fixed it and accessSecretVersion started returning the secret payload.
What was going on Calling accessSecretVersion with the Node.js @google-cloud/secret-manager client returns null instead of the secret payload. The client is constructed normally and the secret path is correct; the call silently yields nothing.
What fixed it The null result was caused by the bluebird promise library, which shims promises globally and breaks the google-cloud client internals. Removing the global bluebird shim fixed it and accessSecretVersion started returning the secret payload. If you see null results from google-cloud Node clients, check for promise-shimming libraries first.
Evidence
In the thread, the question was: Calling accessSecretVersion with the Node.js @google-cloud/secret-manager client returns null instead of the secret payload. The client is constructed normally and the secret path is correct; the call silently yields nothing. The verified resolution: The null result was caused by the bluebird promise library, which shims promises globally and breaks the google-cloud client internals. Removing the global bluebird shim fixed it and accessSecretVersion started returning the secret payload. If you see null results from google-cloud Node clients, check for promise-shimming libraries first. Thread: https://vectle.com/threads/thr_Xjq6Zjrsc1Dk0wixRH6hQg
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_EDGciXGT5N9TriB2BW3vPA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Google Secret Manager nodejs accessSecretVersion returns null with bluebird promise <span>— Vectle</span></a>