Unexpected error determining execution environment, timeout retrieving metadata with older 3.2.1 version #1368
Labels
api: storage
Issues related to the googleapis/nodejs-storage API.
external
This issue is blocked on a bug with the actual product.
🚨
This issue needs some love.
triage me
I really want to be triaged.
Environment details
GOOGLE_APPLICATION_CREDENTIALS
exported)@google-cloud/storage
version: 3.2.1 (fixed by upgrading to latest 5.7.0)firebase
version: 7.5.0 (in attempting to diagnose, updated to 8.2.1)Steps to reproduce
I use
firebase
npm library to authenticate with email and password. This is my sign in logic:Then I setup usage of a public bucket using this library:
Then I when I attempt to download a specific file by name, i attempt to get a list of all files in the bucket and use the metadata.name to find it:
This logic has worked unchanged for at least one year but started failing yesterday, giving the following error from the
log
method:My resolution for this:
firebase
from 7.5.0 to latest 8.2.1 (unsure if this is necessary, did not resolve the issue on its own)Even though this resolves the issue for me, I expect this will cause issues for anyone pinned to these older versions which as far as I can tell are still supported. The behavior of
files
not being an array as well as an unhelpful error message makes it difficult to diagnose the problem.Further context:
I was unable to reproduce this issue on a Manjaro device which had
GOOGLE_APPLICATION_CREDENTIALS
exported. Perhaps OS is related.I see from release notes of 8.2.1 that some authentication changes were made that may be related: https://firebase.google.com/support/release-notes/js#version_821_-_december_17_2020
Referred PRs:
firebase/firebase-js-sdk#4175
firebase/firebase-js-sdk#3222
I noticed this morning that my local ChromeOS device incorrectly detected Central time zone from my IP when I am on Eastern.
Apologies if this is actually an issue with
firebase
library. I can file an issue there if preferred. I can also attempt to reproduce the issue with other combinations such as the latest 3.x of this library if it would be helpful.The text was updated successfully, but these errors were encountered: