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
When running on GCP infrastructure using application default credentials, the SDK will request the internal metadata server at an http: address, see below:
And naturally, all other API requests during operation of the SDK use the https: protocol.
This means that it is impossible to provide a native NodeJS http.Agent or a https.Agent because it will always fail due to the mix of http: and https: requests it will be used for.
This should either be fixed (e.g. don't use the provided agent for the internal metadata server http: request) or documented.
The text was updated successfully, but these errors were encountered:
An HTTP agent can be specified in
initializeApp()
usingAppOptions.httpAgent
.When running on GCP infrastructure using application default credentials, the SDK will request the internal metadata server at an
http:
address, see below:firebase-admin-node/src/app/credential-internal.ts
Lines 261 to 270 in 581e579
And naturally, all other API requests during operation of the SDK use the
https:
protocol.This means that it is impossible to provide a native NodeJS
http.Agent
or ahttps.Agent
because it will always fail due to the mix ofhttp:
andhttps:
requests it will be used for.This should either be fixed (e.g. don't use the provided agent for the internal metadata server
http:
request) or documented.The text was updated successfully, but these errors were encountered: