npm:google-auth-library
causes unresolved top-level await
#27803
Labels
npm:google-auth-library
causes unresolved top-level await
#27803
Version: Deno 2.1.6
If the Google Auth library fails to lookup googleapis.com, that error is apparently impossible to
catch
from Deno scripts.Reproduction
Download the password-protected service account file from the bottom of the first comment of this issue and unzip
service-account-key-deno-firestore-dns-bug.json
.Save the following Deno script as
deno-fail.ts
:Go offline
Run the test:
Also note that the error reason (
getaddrinfo EAI_AGAIN www.googleapis.com
) was not output.Node version
The node version of the script behaves as expected. Here is
node-works.ts
:When run with node, the script correctly prints the dinos line.
The text was updated successfully, but these errors were encountered: