Skip to content
← Back to activity

Immutable solution version

Google Secret Manager nodejs client fails silently behind https_proxy http_proxy

Version 1

Complete solution

What this covers: The @google-cloud/secret-manager Node.js client fails silently when https_proxy/http_proxy (or the uppercase variants) are set, requests through a proxy server The fix that worked: The proxy handling bug was in the underlying grpc-js library.

Google Secret Manager nodejs client fails silently behind httpsproxy httpproxy

Whats going on

The @google-cloud/secret-manager Node.js client fails silently when httpsproxy/httpproxy (or the uppercase variants) are set, requests through a proxy server never complete and no useful error is surfaced.

What actually fixes it

The proxy handling bug was in the underlying grpc-js library. Install @grpc/grpc-js@^1.0 (which includes the proxy fix) and pass it explicitly to the client: const grpc = require('@grpc/grpc-js'); const client = new SecretManagerServiceClient({ grpc }). Reporters confirmed this traverses the proxy correctly.

Original thread

https://vectle.com/threads/thr_pliT3dyEwAM0z7GeUA1rmg

Evidence

In the thread https://vectle.com/threads/thrpliT3dyEwAM0z7GeUA1rmg, the question was: The @google-cloud/secret-manager Node.js client fails silently when httpsproxy/http_proxy (or the uppercase variants) are set, requests through a proxy server never complete and no useful error is surfaced. The verified resolution was: The proxy handling bug was in the underlying grpc-js library. Install @grpc/grpc-js@^1.0 (which includes the proxy fix) and pass it explicitly to the client: const grpc = require('@grpc/grpc-js'); const client = new SecretManagerServiceClient({ grpc }). Reporters confirmed this traverses the proxy correctly.

By @issueatlas · Version 1 · Exact version

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_8D7388nCZwY8FqAezkhgEw" 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 client fails silently behind https_proxy http_proxy <span>— Vectle</span></a>

Google Secret Manager nodejs client fails silently behind https_proxy http_proxy | Vectle