supabase / edge-runtime

A server based on Deno runtime, capable of running JavaScript, TypeScript, and WASM services.
MIT License
649 stars 58 forks source link

local edge runtime request times out waiting for Deno to cache deps after which it is inaccessible #44

Closed evelant closed 1 year ago

evelant commented 1 year ago

Bug report

Describe the bug

In the most recent version of supabase cli when developing edge functions the server times out while caching Deno deps then becomes unresponsive.

To Reproduce

  1. Run an edge function that has a number of dependencies.
  2. Observe timeout hyper::Error(IncompleteMessage)
  3. Subsequent edge function calls fail immediately with

    hyper::Error(User(Service), operation was canceled: connection was not ready
    
    Caused by:
     connection was not ready)

Expected behavior

The deps should be cached on first run resulting in one slow start then subsequent quick starts.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

Additional context

Full log of what happens when I first send a request to the newest version of edge runtime


??? > Setting up Edge Functions runtime...
??? > Download https://deno.land/std@0.182.0/http/server.ts
??? > Download https://deno.land/x/jose@v4.13.1/index.ts
??? > Download https://deno.land/std@0.182.0/async/mod.ts
??? > Download https://deno.land/x/jose@v4.13.1/jwe/compact/decrypt.ts
??? > Download https://deno.land/x/jose@v4.13.1/jwe/flattened/decrypt.ts
??? > Download https://deno.land/x/jose@v4.13.1/jwe/general/decrypt.ts
??? > Download https://deno.land/x/jose@v4.13.1/jwe/general/encrypt.ts
??? > Download https://deno.land/x/jose@v4.13.1/jws/compact/verify.ts
??? > Download https://deno.land/x/jose@v4.13.1/jws/flattened/verify.ts
??? > Download https://deno.land/x/jose@v4.13.1/jws/general/verify.ts
??? > Download https://deno.land/x/jose@v4.13.1/jwt/verify.ts
??? > Download https://deno.land/x/jose@v4.13.1/jwt/decrypt.ts
??? > Download https://deno.land/x/jose@v4.13.1/jwe/compact/encrypt.ts
??? > Download https://deno.land/x/jose@v4.13.1/jwe/flattened/encrypt.ts
??? > Download https://deno.land/x/jose@v4.13.1/jws/compact/sign.ts
??? > Download https://deno.land/x/jose@v4.13.1/jws/flattened/sign.ts
??? > Download https://deno.land/x/jose@v4.13.1/jws/general/sign.ts
??? > Download https://deno.land/x/jose@v4.13.1/jwt/sign.ts
??? > Download https://deno.land/x/jose@v4.13.1/jwt/encrypt.ts
??? > Download https://deno.land/x/jose@v4.13.1/jwk/thumbprint.ts
??? > Download https://deno.land/x/jose@v4.13.1/jwk/embedded.ts
??? > Download https://deno.land/x/jose@v4.13.1/jwks/local.ts
??? > Download https://deno.land/x/jose@v4.13.1/jwks/remote.ts
??? > Download https://deno.land/x/jose@v4.13.1/jwt/unsecured.ts
??? > Download https://deno.land/x/jose@v4.13.1/key/export.ts
??? > Download https://deno.land/x/jose@v4.13.1/key/import.ts
??? > Download https://deno.land/x/jose@v4.13.1/util/decode_protected_header.ts
??? > Download https://deno.land/x/jose@v4.13.1/util/decode_jwt.ts
??? > Download https://deno.land/x/jose@v4.13.1/util/errors.ts
??? > Download https://deno.land/x/jose@v4.13.1/key/generate_key_pair.ts
??? > Download https://deno.land/x/jose@v4.13.1/key/generate_secret.ts
??? > Download https://deno.land/x/jose@v4.13.1/util/base64url.ts
??? > Download https://deno.land/std@0.182.0/async/abortable.ts
??? > Download https://deno.land/std@0.182.0/async/deadline.ts
??? > Download https://deno.land/std@0.182.0/async/debounce.ts
??? > Download https://deno.land/std@0.182.0/async/deferred.ts
??? > Download https://deno.land/std@0.182.0/async/delay.ts
??? > Download https://deno.land/std@0.182.0/async/mux_async_iterator.ts
??? > Download https://deno.land/std@0.182.0/async/pool.ts
??? > Download https://deno.land/std@0.182.0/async/tee.ts
??? > Download https://deno.land/std@0.182.0/async/retry.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/base64url.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/buffer_utils.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/decrypt.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/zlib.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/is_disjoint.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/is_object.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/decrypt_key_management.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/cek.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/validate_crit.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/validate_algorithms.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/encrypt_key_management.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/verify.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/check_key_type.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/jwt_claims_set.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/encrypt.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/iv.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/sign.ts
??? > Download https://deno.land/x/jose@v4.13.1/jwt/produce.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/digest.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/fetch_jwks.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/env.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/asn1.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/key_to_jwk.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/jwk_to_key.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/generate.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/check_iv_length.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/check_cek_length.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/timing_safe_equal.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/webcrypto.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/crypto_key.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/invalid_key_input.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/is_key_like.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/random.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/aeskw.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/ecdhes.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/pbes2kw.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/rsaes.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/aesgcmkw.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/subtle_dsa.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/check_key_length.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/get_sign_verify_key.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/epoch.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/secs.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/format_pem.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/bogus.ts
??? > Download https://deno.land/x/jose@v4.13.1/lib/check_p2s.ts
??? > Download https://deno.land/x/jose@v4.13.1/runtime/subtle_rsaes.ts
??? > Serving functions on http://localhost:54321/functions/v1/<function-name>
??? > serving the request with /home/deno/functions/generate-token
??? > Download https://deno.land/std@0.177.0/http/server.ts
??? > Download https://deno.land/x/xhr@0.1.1/mod.ts
??? > Download https://esm.sh/firebase-admin@11.5.0?bundle&target=deno&no-check
??? > Download https://deno.land/std@0.177.0/async/mod.ts
??? > Download https://deno.land/x/media_types@v2.9.0/mod.ts
??? > Download https://esm.sh/v114/firebase-admin@11.5.0/deno/firebase-admin.bundle.mjs
??? > Download https://deno.land/std@0.177.0/async/abortable.ts
??? > Download https://deno.land/std@0.177.0/async/deadline.ts
??? > Download https://deno.land/std@0.177.0/async/debounce.ts
??? > Download https://deno.land/std@0.177.0/async/deferred.ts
??? > Download https://deno.land/std@0.177.0/async/delay.ts
??? > Download https://deno.land/std@0.177.0/async/mux_async_iterator.ts
??? > Download https://deno.land/std@0.177.0/async/pool.ts
??? > Download https://deno.land/std@0.177.0/async/tee.ts
??? > Download https://deno.land/std@0.177.0/async/retry.ts
??? > Download https://deno.land/x/media_types@v2.9.0/db.ts
??? > Download https://deno.land/x/media_types@v2.9.0/deps.ts
??? > Download https://deno.land/std@0.177.0/node/process.ts
??? > Download https://deno.land/std@0.177.0/node/buffer.ts
??? > Download https://deno.land/std@0.177.0/node/path.ts
??? > Download https://deno.land/std@0.177.0/node/fs.ts
??? > Download https://esm.sh/v114/@google-cloud/firestore@6.5.0/deno/build/src/path.js
??? > Download https://esm.sh/v114/jsonwebtoken@9.0.0/deno/jsonwebtoken.mjs
??? > Download https://deno.land/std@0.177.0/node/crypto.ts
??? > Download https://deno.land/std@0.177.0/node/events.ts
??? > Download https://deno.land/std@0.177.0/node/https.ts
??? > Download https://esm.sh/v114/node-forge@1.3.1/deno/node-forge.mjs
??? > Download https://deno.land/std@0.177.0/node/url.ts
??? > Download https://deno.land/std@0.177.0/node/os.ts
??? > Download https://deno.land/std@0.177.0/node/zlib.ts
??? > Download https://esm.sh/v114/@firebase/database-compat@0.3.4/deno/standalone.js
??? > Download https://esm.sh/v114/@google-cloud/firestore@6.5.0/deno/firestore.mjs
??? > Download https://deno.land/std@0.177.0/node/http.ts
??? > Download https://esm.sh/v114/jwks-rsa@3.0.1/deno/jwks-rsa.mjs
??? > Download https://esm.sh/v114/@fastify/busboy@1.2.1/deno/busboy.mjs
??? > Download https://deno.land/std@0.99.0/path/mod.ts
??? > Download https://deno.land/std@0.99.0/_util/os.ts
??? > Download https://deno.land/std@0.99.0/path/win32.ts
??? > Download https://deno.land/std@0.99.0/path/posix.ts
??? > Download https://deno.land/std@0.99.0/path/common.ts
??? > Download https://deno.land/std@0.99.0/path/separator.ts
??? > Download https://deno.land/std@0.99.0/path/_interface.ts
??? > Download https://deno.land/std@0.99.0/path/glob.ts
??? > Download https://deno.land/std@0.177.0/node/_utils.ts
??? > Download https://deno.land/std@0.177.0/node/internal/validators.mjs
??? > Download https://deno.land/std@0.177.0/node/internal/errors.ts
??? > Download https://deno.land/std@0.177.0/node/internal/options.ts
??? > Download https://deno.land/std@0.177.0/_util/asserts.ts
??? > Download https://deno.land/std@0.177.0/path/mod.ts
??? > Download https://deno.land/std@0.177.0/node/_process/process.ts
??? > Download https://deno.land/std@0.177.0/node/_process/exiting.ts
??? > Download https://deno.land/std@0.177.0/node/_process/streams.mjs
??? > Download https://deno.land/std@0.177.0/node/_core.ts
??? > Download https://deno.land/std@0.177.0/node/_next_tick.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/mod.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/constants.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/uv.ts
??? > Download https://deno.land/std@0.177.0/node/internal/process/per_thread.mjs
??? > Download https://deno.land/std@0.177.0/node/path/mod.ts
??? > Download https://deno.land/std@0.177.0/node/internal/buffer.mjs
??? > Download https://deno.land/std@0.177.0/node/internal_binding/crypto.ts
??? > Download https://deno.land/std@0.177.0/node/internal/crypto/random.ts
??? > Download https://deno.land/std@0.177.0/node/internal/crypto/pbkdf2.ts
??? > Download https://deno.land/std@0.177.0/node/internal/crypto/scrypt.ts
??? > Download https://deno.land/std@0.177.0/node/internal/crypto/hkdf.ts
??? > Download https://deno.land/std@0.177.0/node/internal/crypto/keygen.ts
??? > Download https://deno.land/std@0.177.0/node/internal/crypto/keys.ts
??? > Download https://deno.land/std@0.177.0/node/internal/crypto/diffiehellman.ts
??? > Download https://deno.land/std@0.177.0/node/internal/crypto/cipher.ts
??? > Download https://deno.land/std@0.177.0/node/internal/crypto/sig.ts
??? > Download https://deno.land/std@0.177.0/node/internal/crypto/hash.ts
??? > Download https://deno.land/std@0.177.0/node/internal/crypto/x509.ts
??? > Download https://deno.land/std@0.177.0/node/internal/crypto/util.ts
??? > Download https://deno.land/std@0.177.0/node/internal/crypto/certificate.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_access.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_appendFile.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_chmod.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_chown.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_close.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_constants.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_copy.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_dir.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_dirent.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_exists.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_fdatasync.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_fstat.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_fsync.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_ftruncate.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_futimes.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_link.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_lstat.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_mkdir.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_mkdtemp.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_open.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_opendir.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_read.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_readdir.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_readFile.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_readlink.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_realpath.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_rename.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_rmdir.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_rm.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_stat.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_symlink.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_truncate.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_unlink.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_utimes.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_watch.ts
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_write.mjs
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_writev.mjs
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_writeFile.ts
??? > Download https://deno.land/std@0.177.0/node/internal/fs/utils.mjs
??? > Download https://deno.land/std@0.177.0/node/internal/fs/streams.mjs
??? > Download https://deno.land/std@0.177.0/node/_events.mjs
??? > Download https://deno.land/std@0.177.0/node/internal/url.ts
??? > Download https://deno.land/std@0.177.0/fs/eol.ts
??? > Download https://deno.land/std@0.177.0/_util/os.ts
??? > Download https://deno.land/std@0.177.0/path/_constants.ts
??? > Download https://deno.land/std@0.177.0/node/internal/idna.ts
??? > Download https://deno.land/std@0.177.0/node/internal/querystring.ts
??? > Download https://deno.land/std@0.177.0/node/querystring.ts
??? > Download https://esm.sh/v114/jws@3.2.2/deno/jws.mjs
??? > Download https://esm.sh/v114/lodash@4.17.21/deno/lodash.mjs
??? > Download https://esm.sh/v114/ms@2.1.3/deno/ms.mjs
??? > Download https://esm.sh/v114/semver@7.3.8/deno/semver.mjs
??? > Download https://esm.sh/v114/text-decoding@1.0.0/deno/text-decoding.mjs
??? > Download https://deno.land/std@0.177.0/node/util.ts
??? > Download https://deno.land/std@0.177.0/node/stream.ts
??? > Download https://deno.land/std@0.177.0/node/internal/error_codes.ts
??? > Download https://deno.land/std@0.177.0/node/internal/hide_stack_frames.ts
??? > Download https://deno.land/std@0.177.0/node/internal/util/types.ts
??? > Download https://deno.land/std@0.177.0/node/internal/normalize_encoding.mjs
??? > Download https://deno.land/std@0.177.0/node/_zlib.mjs
??? > Download https://deno.land/std@0.99.0/path/_constants.ts
??? > Download https://deno.land/std@0.99.0/path/_util.ts
??? > Download https://deno.land/std@0.177.0/node/net.ts
??? > Download https://deno.land/std@0.177.0/http/http_status.ts
??? > Download https://deno.land/std@0.177.0/node/_http_outgoing.ts
??? > Download https://deno.land/std@0.177.0/node/_http_agent.mjs
??? > Download https://deno.land/std@0.177.0/node/_http_common.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/tcp_wrap.ts
??? > Download https://deno.land/std@0.99.0/_util/assert.ts
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/google-gax.mjs
??? > Download https://esm.sh/v114/protobufjs@7.2.3/deno/minimal.js
??? > Download https://esm.sh/v114/functional-red-black-tree@1.0.1/deno/functional-red-black-tree.mjs
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/status.js
??? > Download https://esm.sh/v114/fast-deep-equal@3.1.3/deno/fast-deep-equal.mjs
??? > Download https://deno.land/std@0.177.0/node/assert.ts
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/fallback.js
??? > Download https://deno.land/std@0.177.0/node/internal_binding/node_options.ts
??? > Download https://deno.land/std@0.177.0/path/win32.ts
??? > Download https://deno.land/std@0.177.0/path/posix.ts
??? > Download https://deno.land/std@0.177.0/path/common.ts
??? > Download https://deno.land/std@0.177.0/path/separator.ts
??? > Download https://deno.land/std@0.177.0/path/_interface.ts
??? > Download https://deno.land/std@0.177.0/path/glob.ts
??? > Download https://deno.land/std@0.177.0/node/internal/readline/callbacks.mjs
??? > Download https://deno.land/std@0.177.0/node/_process/stdio.mjs
??? > Download https://deno.land/std@0.177.0/node/internal/fixed_queue.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/async_wrap.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/buffer.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/config.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/cares_wrap.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/contextify.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/credentials.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/errors.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/fs.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/fs_dir.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/fs_event_wrap.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/heap_utils.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/http_parser.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/icu.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/inspector.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/js_stream.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/messaging.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/module_wrap.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/native_module.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/natives.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/options.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/os.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/pipe_wrap.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/performance.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/process_methods.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/report.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/serdes.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/signal_wrap.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/spawn_sync.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/stream_wrap.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/string_decoder.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/symbols.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/task_queue.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/timers.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/tls_wrap.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/trace_events.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/tty_wrap.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/types.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/udp_wrap.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/url.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/util.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/v8.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/worker.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/zlib.ts
??? > Download https://deno.land/std@0.177.0/node/internal/util/inspect.mjs
??? > Download https://esm.sh/v114/limiter@1.1.5/deno/limiter.mjs
??? > Download https://esm.sh/v114/debug@4.3.4/deno/debug.mjs
??? > Download https://esm.sh/v114/lru-memoizer@2.2.0/deno/lru-memoizer.mjs
??? > Download https://esm.sh/v114/jose@4.13.1/deno/jose.mjs
??? > Download https://esm.sh/v114/@firebase/component@0.6.4/deno/component.mjs
??? > Download https://esm.sh/v114/@firebase/logger@0.4.0/deno/logger.mjs
??? > Download https://esm.sh/v114/tslib@2.5.0/deno/tslib.mjs
??? > Download https://esm.sh/v114/@firebase/util@1.9.3/deno/util.mjs
??? > Download https://deno.land/std@0.177.0/node/tls.ts
??? > Download https://esm.sh/v114/node_buffer.js
??? > Download https://esm.sh/v114/lru-cache@6.0.0/deno/lru-cache.mjs
??? > Download https://esm.sh/v114/jwa@1.4.1/deno/jwa.mjs
??? > Download https://esm.sh/v114/safe-buffer@5.2.1/deno/safe-buffer.mjs
??? > Download https://deno.land/std@0.177.0/node/internal_binding/_utils.ts
??? > Download https://deno.land/std@0.177.0/node/internal/util.mjs
??? > Download https://deno.land/std@0.177.0/encoding/base64.ts
??? > Download https://deno.land/std@0.177.0/encoding/base64url.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/_libuv_winerror.ts
??? > Download https://deno.land/std@0.177.0/node/path/win32.ts
??? > Download https://deno.land/std@0.177.0/node/path/posix.ts
??? > Download https://deno.land/std@0.177.0/node/path/common.ts
??? > Download https://deno.land/std@0.177.0/node/path/separator.ts
??? > Download https://deno.land/std@0.177.0/node/path/_interface.ts
??? > Download https://deno.land/std@0.177.0/node/path/glob.ts
??? > Download https://deno.land/std@0.177.0/node/internal/crypto/_randomBytes.ts
??? > Download https://deno.land/std@0.177.0/node/internal/crypto/_randomFill.ts
??? > Download https://deno.land/std@0.177.0/node/internal/crypto/_randomInt.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/_timingSafeEqual.ts
??? > Download https://deno.land/std@0.177.0/node/internal/crypto/constants.ts
??? > Download https://deno.land/std@0.177.0/node/internal/crypto/_keys.ts
??? > Download https://deno.land/std@0.177.0/node/internal/streams/writable.mjs
??? > Download https://deno.land/std@0.177.0/node/_stream.mjs
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/public_encrypt/mod.js
??? > Download https://deno.land/std@0.177.0/crypto/_wasm/mod.ts
??? > Download https://deno.land/std@0.177.0/encoding/hex.ts
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/browserify_aes/mod.js
??? > Download https://deno.land/std@0.177.0/node/_fs/_fs_common.ts
??? > Download https://deno.land/std@0.177.0/fs/exists.ts
??? > Download https://deno.land/std@0.177.0/streams/write_all.ts
??? > Download https://deno.land/std@0.177.0/node/internal/assert.mjs
??? > Download https://deno.land/std@0.177.0/node/internal/streams/destroy.mjs
??? > Download https://deno.land/std@0.177.0/node/_util/_util_callbackify.ts
??? > Download https://deno.land/std@0.177.0/node/internal/util/debuglog.ts
??? > Download https://deno.land/std@0.177.0/node/util/types.ts
??? > Download https://deno.land/std@0.177.0/node/internal/util/comparisons.ts
??? > Download https://deno.land/std@0.177.0/node/_zlib_binding.mjs
??? > Download https://deno.land/std@0.177.0/node/internal/net.ts
??? > Download https://deno.land/std@0.177.0/node/internal/async_hooks.ts
??? > Download https://deno.land/std@0.177.0/node/internal/stream_base_commons.ts
??? > Download https://deno.land/std@0.177.0/node/internal/timers.mjs
??? > Download https://deno.land/std@0.177.0/node/internal/dtrace.ts
??? > Download https://deno.land/std@0.177.0/node/dns.ts
??? > Download https://deno.land/std@0.177.0/node/diagnostics_channel.ts
??? > Download https://deno.land/std@0.177.0/node/internal/streams/state.mjs
??? > Download https://deno.land/std@0.177.0/node/internal/http.ts
??? > Download https://deno.land/std@0.177.0/node/async_hooks.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/connection_wrap.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/_listen.ts
??? > Download https://deno.land/std@0.177.0/flags/mod.ts
??? > Download https://deno.land/std@0.177.0/node/assertion_error.ts
??? > Download https://deno.land/std@0.177.0/testing/asserts.ts
??? > Download https://deno.land/std@0.177.0/path/_util.ts
??? > Download https://deno.land/std@0.177.0/node/internal/readline/utils.mjs
??? > Download https://deno.land/std@0.177.0/node/internal_binding/_node.ts
??? > Download https://deno.land/std@0.177.0/bytes/index_of_needle.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/ares.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/handle_wrap.ts
??? > Download https://esm.sh/v114/@google-cloud/firestore@6.5.0/deno/build/src/validate.js
??? > Download https://esm.sh/v114/@google-cloud/firestore@6.5.0/deno/build/src/util.js
??? > Download https://esm.sh/v114/protobufjs@7.2.3/deno/src/index-minimal.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/longRunningCalls/longrunning.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/locationService.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/iamService.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/descriptor.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/operationsClient.js
??? > Download https://esm.sh/v114/object-hash@3.0.0/deno/object-hash.mjs
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/googleError.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/warnings.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/util.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/featureDetection.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/fallbackProto.js
??? > Download https://esm.sh/v114/google-auth-library@8.7.0/deno/google-auth-library.mjs
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/package.json.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/pathTemplate.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/protos/locations.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/streamingCalls/streaming.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/fallbackServiceStub.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/fallbackRest.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/createApiCall.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/routingHeader.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/protos/operations.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/protos/iam_service.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/gax.js
??? > Download https://esm.sh/v114/protobufjs@7.2.3/deno/protobufjs.mjs
??? > Download https://esm.sh/v114/proto3-json-serializer@1.1.0/deno/proto3-json-serializer.mjs
??? > Download https://esm.sh/v114/retry-request@5.0.2/deno/retry-request.mjs
??? > Download https://esm.sh/v114/is-stream-ended@0.1.4/deno/is-stream-ended.mjs
??? > Download https://esm.sh/v114/node_fetch.js
??? > Download https://esm.sh/v114/fast-text-encoding@1.0.6/deno/fast-text-encoding.mjs
??? > Download https://esm.sh/v114/duplexify@4.1.2/deno/duplexify.mjs
??? > Download https://esm.sh/v114/abort-controller@3.0.0/deno/abort-controller.mjs
??? > Download https://deno.land/std@0.177.0/node/_tls_common.ts
??? > Download https://deno.land/std@0.177.0/node/_tls_wrap.ts
??? > Download https://deno.land/std@0.177.0/node/internal/primordials.mjs
??? > Download https://deno.land/std@0.177.0/node/internal_binding/_winerror.ts
??? > Download https://deno.land/std@0.177.0/node/path/_constants.ts
??? > Download https://deno.land/std@0.177.0/node/path/_util.ts
??? > Download https://deno.land/std@0.177.0/crypto/timing_safe_equal.ts
??? > Download https://deno.land/std@0.177.0/node/string_decoder.ts
??? > Download https://deno.land/std@0.177.0/node/internal/streams/end-of-stream.mjs
??? > Download https://deno.land/std@0.177.0/node/internal/streams/utils.mjs
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/public_encrypt/public_encrypt.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/public_encrypt/private_decrypt.js
??? > Download https://deno.land/std@0.177.0/crypto/_wasm/lib/deno_std_wasm_crypto.generated.mjs
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/browserify_aes/modes/mod.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/browserify_aes/encrypter.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/browserify_aes/decrypter.js
??? > Download https://deno.land/std@0.177.0/fmt/printf.ts
??? > Download https://deno.land/std@0.177.0/node/internal_binding/node_file.ts
??? > Download https://deno.land/std@0.177.0/node/_pako.mjs
??? > Download https://deno.land/std@0.177.0/node/timers.ts
??? > Download https://deno.land/std@0.177.0/node/internal/dns/utils.ts
??? > Download https://deno.land/std@0.177.0/node/internal/dns/promises.ts
??? > Download https://deno.land/std@0.177.0/fmt/colors.ts
??? > Download https://deno.land/std@0.177.0/testing/_diff.ts
??? > Download https://deno.land/std@0.177.0/testing/_format.ts
??? > Download https://esm.sh/v114/ms@2.1.2/deno/ms.mjs
??? > Download https://esm.sh/v114/ecdsa-sig-formatter@1.0.11/deno/ecdsa-sig-formatter.mjs
??? > Download https://esm.sh/v114/buffer-equal-constant-time@1.0.1/deno/buffer-equal-constant-time.mjs
??? > Download https://esm.sh/v114/lru-cache@4.0.2/deno/lru-cache.mjs
??? > Download https://esm.sh/v114/lodash.clonedeep@4.5.0/deno/lodash.clonedeep.mjs
??? > Download https://esm.sh/v114/yallist@4.0.0/deno/yallist.mjs
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/transcoding.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/protos/operations.json.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/operations_client_config.json.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/protos/status.json.js
??? > Download https://esm.sh/v114/protobufjs@7.2.3/deno/src/reader.js
??? > Download https://esm.sh/v114/protobufjs@7.2.3/deno/src/writer_buffer.js
??? > Download https://esm.sh/v114/protobufjs@7.2.3/deno/src/writer.js
??? > Download https://esm.sh/v114/protobufjs@7.2.3/deno/src/roots.js
??? > Download https://esm.sh/v114/protobufjs@7.2.3/deno/src/rpc.js
??? > Download https://esm.sh/v114/protobufjs@7.2.3/deno/src/util/minimal.js
??? > Download https://esm.sh/v114/protobufjs@7.2.3/deno/src/reader_buffer.js
??? > Download https://esm.sh/v114/request@2.88.2/deno/request.mjs
??? > Download https://esm.sh/v114/extend@3.0.2/deno/extend.mjs
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/locations_client_config.json.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/protos/locations.json.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/paginationCalls/pageDescriptor.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/streamArrayParser.js
??? > Download https://esm.sh/v114/@google-cloud/firestore@6.5.0/deno/build/src/v1/firestore_client_config.json.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/iam_policy_service_client_config.json.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/protos/iam_service.json.js
??? > Download https://esm.sh/v114/base64-js@1.5.1/deno/base64-js.mjs
??? > Download https://esm.sh/v114/arrify@2.0.1/deno/arrify.mjs
??? > Download https://esm.sh/v114/gtoken@6.1.2/deno/gtoken.mjs
??? > Download https://esm.sh/v114/jws@4.0.0/deno/jws.mjs
??? > Download https://deno.land/std@0.177.0/node/child_process.ts
??? > Download https://esm.sh/v114/gaxios@5.1.0/deno/gaxios.mjs
??? > Download https://esm.sh/v114/gcp-metadata@5.2.0/deno/gcp-metadata.mjs
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/bundlingCalls/bundleDescriptor.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/streamingCalls/streamDescriptor.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/longRunningCalls/longRunningDescriptor.js
??? > Download https://esm.sh/v114/@protobufjs/pool@1.1.0/deno/pool.mjs
??? > Download https://esm.sh/v114/@protobufjs/float@1.0.2/deno/float.mjs
??? > Download https://esm.sh/v114/@protobufjs/base64@1.1.2/deno/base64.mjs
??? > Download https://esm.sh/v114/@protobufjs/path@1.1.2/deno/path.mjs
??? > Download https://esm.sh/v114/@protobufjs/eventemitter@1.1.0/deno/eventemitter.mjs
??? > Download https://esm.sh/v114/@protobufjs/aspromise@1.1.2/deno/aspromise.mjs
??? > Download https://esm.sh/v114/@protobufjs/fetch@1.1.0/deno/fetch.mjs
??? > Download https://esm.sh/v114/@protobufjs/codegen@2.0.4/deno/codegen.mjs
??? > Download https://esm.sh/v114/@protobufjs/utf8@1.1.0/deno/utf8.mjs
??? > Download https://esm.sh/v114/@protobufjs/inquire@1.1.0/deno/inquire.mjs
??? > Download https://esm.sh/v114/stream-shift@1.0.1/deno/stream-shift.mjs
??? > Download https://esm.sh/v114/inherits@2.0.4/deno/inherits.mjs
??? > Download https://esm.sh/v114/end-of-stream@1.4.4/deno/end-of-stream.mjs
??? > Download https://esm.sh/v114/readable-stream@3.6.2/deno/readable-stream.mjs
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/normalCalls/timeout.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/normalCalls/retries.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/apiCaller.js
??? > Download https://esm.sh/v114/yallist@2.1.2/deno/yallist.mjs
??? > Download https://esm.sh/v114/pseudomap@1.0.2/deno/pseudomap.mjs
??? > Download https://esm.sh/v114/@google-cloud/firestore@6.5.0/deno/build/src/timestamp.js
??? > Download https://esm.sh/v114/protobufjs@7.2.3/deno/src/util/longbits.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/parse_asn1/mod.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/public_encrypt/mgf.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/public_encrypt/xor.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/bn.js/bn.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/public_encrypt/with_public.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/browserify_rsa.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/browserify_aes/auth_cipher.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/browserify_aes/stream_cipher.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/cipher_base.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/browserify_aes/aes.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/evp_bytes_to_key.ts
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/browserify_aes/modes/ecb.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/browserify_aes/modes/cbc.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/browserify_aes/modes/cfb.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/browserify_aes/modes/cfb8.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/browserify_aes/modes/cfb1.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/browserify_aes/modes/ofb.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/browserify_aes/modes/ctr.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/randombytes.ts
??? > Download https://esm.sh/v114/is-typedarray@1.0.0/deno/is-typedarray.mjs
??? > Download https://esm.sh/v114/forever-agent@0.6.1/deno/forever-agent.mjs
??? > Download https://esm.sh/v114/http-signature@1.2.0/deno/http-signature.mjs
??? > Download https://esm.sh/v114/tough-cookie@2.5.0/deno/tough-cookie.mjs
??? > Download https://esm.sh/v114/performance-now@2.1.0/deno/performance-now.mjs
??? > Download https://esm.sh/v114/isstream@0.1.2/deno/isstream.mjs
??? > Download https://esm.sh/v114/tunnel-agent@0.6.0/deno/tunnel-agent.mjs
??? > Download https://esm.sh/v114/qs@6.5.3/deno/qs.mjs
??? > Download https://esm.sh/v114/mime-types@2.1.35/deno/mime-types.mjs
??? > Download https://esm.sh/v114/json-stringify-safe@5.0.1/deno/json-stringify-safe.mjs
??? > Download https://esm.sh/v114/uuid@3.4.0/deno/v4.js
??? > Download https://esm.sh/v114/aws4@1.12.0/deno/aws4.mjs
??? > Download https://esm.sh/v114/oauth-sign@0.9.0/deno/oauth-sign.mjs
??? > Download https://esm.sh/v114/form-data@2.3.3/deno/form-data.mjs
??? > Download https://esm.sh/v114/aws-sign2@0.7.0/deno/aws-sign2.mjs
??? > Download https://esm.sh/v114/har-validator@5.1.5/deno/har-validator.mjs
??? > Download https://esm.sh/v114/combined-stream@1.0.8/deno/combined-stream.mjs
??? > Download https://esm.sh/v114/caseless@0.12.0/deno/caseless.mjs
??? > Download https://esm.sh/v114/protobufjs@7.2.3/deno/src/rpc/service.js
??? > Download https://esm.sh/v114/https-proxy-agent@5.0.1/deno/https-proxy-agent.mjs
??? > Download https://esm.sh/v114/is-stream@2.0.1/deno/is-stream.mjs
??? > Download https://esm.sh/v114/google-p12-pem@4.0.1/deno/google-p12-pem.mjs
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/paginationCalls/pagedApiCaller.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/normalCalls/normalApiCaller.js
??? > Download https://esm.sh/v114/jwa@2.0.0/deno/jwa.mjs
??? > Download https://esm.sh/v114/json-bigint@1.0.0/deno/json-bigint.mjs
??? > Download https://deno.land/std@0.177.0/node/internal/child_process.ts
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/parse_asn1/asn1.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/parse_asn1/fix_proc.js
??? > Download https://esm.sh/v114/mime-db@1.52.0/deno/mime-db.mjs
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/browserify_aes/ghash.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/browserify_aes/xor.ts
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/browserify_aes/incr32.js
??? > Download https://deno.land/std@0.177.0/collections/map_values.ts
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/asn1.js/mod.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/parse_asn1/certificate.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/streamingCalls/streamingApiCaller.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/longRunningCalls/longRunningApiCaller.js
??? > Download https://esm.sh/v114/once@1.4.0/deno/once.mjs
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/bundlingCalls/bundleExecutor.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/bundlingCalls/bundleApiCaller.js
??? > Download https://esm.sh/v114/bignumber.js@9.1.1/deno/bignumber.mjs
??? > Download https://esm.sh/v114/agent-base@6.0.2/deno/agent-base.mjs
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/asn1.js/base/node.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/asn1.js/base/buffer.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/asn1.js/base/reporter.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/asn1.js/encoders/der.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/asn1.js/encoders/pem.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/asn1.js/decoders/der.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/asn1.js/decoders/pem.js
??? > Download https://deno.land/std@0.177.0/node/_crypto/crypto_browserify/asn1.js/constants/der.js
??? > Download https://esm.sh/v114/wrappy@1.0.2/deno/wrappy.mjs
??? > Download https://esm.sh/v114/uuid@3.4.0/deno/lib/bytesToUuid.js
??? > Download https://esm.sh/v114/uuid@3.4.0/deno/lib/rng.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/call.js
??? > Download https://esm.sh/v114/ajv@6.12.6/deno/lib/refs/json-schema-draft-06.json.js
??? > Download https://esm.sh/v114/har-schema@2.0.0/deno/har-schema.mjs
??? > Download https://esm.sh/v114/ajv@6.12.6/deno/ajv.mjs
??? > Download https://esm.sh/v114/sshpk@1.17.0/deno/sshpk.mjs
??? > Download https://esm.sh/v114/assert-plus@1.0.0/deno/assert-plus.mjs
??? > Download https://esm.sh/v114/jsprim@1.4.2/deno/jsprim.mjs
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/paginationCalls/resourceCollector.js
??? > Download https://esm.sh/v114/psl@1.9.0/deno/psl.mjs
??? > Download https://deno.land/std@0.177.0/node/punycode.ts
??? > Download https://esm.sh/v114/util-deprecate@1.0.2/deno/util-deprecate.mjs
??? > Download https://esm.sh/v114/delayed-stream@1.0.0/deno/delayed-stream.mjs
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/bundlingCalls/task.js
??? > Download https://esm.sh/v114/google-gax@3.6.0/deno/build/src/bundlingCalls/bundlingUtils.js
??? > Download https://esm.sh/v114/json-schema-traverse@0.4.1/deno/json-schema-traverse.mjs
??? > Download https://esm.sh/v114/uri-js@4.4.1/deno/uri-js.mjs
??? > Download https://esm.sh/v114/fast-json-stable-stringify@2.1.0/deno/fast-json-stable-stringify.mjs
??? > Download https://esm.sh/v114/extsprintf@1.3.0/deno/extsprintf.mjs
??? > Download https://esm.sh/v114/json-schema@0.4.0/deno/json-schema.mjs
??? > Download https://esm.sh/v114/verror@1.10.0/deno/verror.mjs
??? > Download https://esm.sh/v114/jsbn@0.1.1/deno/jsbn.mjs
??? > Download https://esm.sh/v114/tweetnacl@0.14.5/deno/tweetnacl.mjs
??? > Download https://esm.sh/v114/safer-buffer@2.1.2/deno/safer-buffer.mjs
??? > Download https://esm.sh/v114/ecc-jsbn@0.1.2/deno/ecc-jsbn.mjs
??? > Download https://esm.sh/v114/bcrypt-pbkdf@1.0.2/deno/bcrypt-pbkdf.mjs
??? > Download https://esm.sh/v114/ecc-jsbn@0.1.2/deno/lib/ec.js
??? > Download https://esm.sh/v114/asn1@0.2.6/deno/asn1.mjs
??? > Download https://esm.sh/v114/core-util-is@1.0.2/deno/core-util-is.mjs
??? > Download https://esm.sh/v114/extsprintf@1.4.1/deno/extsprintf.mjs
??? > hyper::Error(IncompleteMessage)
??? > hyper::Error(User(Service), operation was canceled: connection was not ready
??? >
??? > Caused by:
??? >     connection was not ready)
??? > hyper::Error(User(Service), operation was canceled: connection was not ready
evelant commented 1 year ago

This is blocking my local development at the moment. Going to try rolling back to an older version of supabase cli.

evelant commented 1 year ago

Unfortunately rolling back doesn't appear to work. Earlier versions of the edge runtime are missing globals which should always be present on Deno. worker thread panicked ReferenceError: performance is not defined

edit: I was able to work around the missing performance global bug and get things running on cli v1.47.0

I think this issue is possibly a combination of a few bugs:

  1. edge runtime times out if deno needs to cache a lot of deps
  2. if edge runtime times out or fails for any reason it becomes unusable until restarted, all requests instantly fail with hyper::Error(User(Service), operation was canceled: connection was not ready
  3. errors raised while caching deno deps appear to be silently dropped, instead the logs show hyper::Error(IncompleteMessage)
evelant commented 1 year ago

Unfortunately now I can't deploy my edge functions. I used dynamic import to allow me to put a shim in for the missing performance global. I wasn't aware that dynamic import works fine locally but when deployed crashes with Dynamic import is not enabled in this context.

danimbrogno commented 1 year ago

I am experiencing this issue as well. Any timeline for a fix or workaround?

leerobert commented 1 year ago

v1.49.4 is the last usable edge-runtime I've been able to locally develop & deploy my edge functions to prod.

See: https://github.com/langchain-ai/langchain-template-supabase/issues/1

danimbrogno commented 1 year ago

Can confirm. Downgrading to supabase 1.49.4 fixed the issue for me.

I removed the cli with homebrew and then reinstalled from this .rb file:

https://github.com/supabase/homebrew-tap/blob/6704504cea91f643eba30546befa715af5701c75/supabase.rb

evelant commented 1 year ago

@laktek have you been able to reproduce this? It's still not possible to use supabase cli versions > 1.49.4 due to this. Seems related to https://github.com/supabase/edge-runtime/issues/59 https://github.com/supabase/edge-runtime/issues/58

laktek commented 1 year ago

@evelant sorry for the late response. I was doing other refactors and was meant to address this issue this week. Will provide a solution within the next 3 days.

laktek commented 1 year ago

@evelant Can you share the import map of your project? I'm trying to reproduce the issue.

evelant commented 1 year ago
{
    "imports": {
        "@effect/data/": "https://esm.sh/@effect/data@0.12.2&target=deno/",
        "@effect/io/": "https://esm.sh/@effect/io@0.25.7&target=deno/",
        "@effect/stream/": "https://esm.sh/@effect/stream@0.21.0&target=deno/",
        "@effect/match/": "https://esm.sh/@effect/match@0.17.0&target=deno/",
        "@effect/schema/": "https://esm.sh/@effect/schema@0.17.2&target=deno/",
        "@react-native-async-storage/async-storage": "https://esm.sh/@react-native-async-storage/async-storage@1.18.1?target=deno",
        "@supabase/postgrest-js": "https://esm.sh/@supabase/postgrest-js@1.5.0?target=deno",
        "http": "https://esm.sh/@types/node@18.11.13/http.d.ts?target=deno&no-check",
        "@supabase/postgrest-js/": "https://esm.sh/@supabase/postgrest-js@1.5.0&target=deno/",
        "@supabase/supabase-js": "https://esm.sh/@supabase/supabase-js@2.21.0?target=deno",
        "@supabase/supabase-js/": "https://esm.sh/@supabase/supabase-js@2.21.0&target=deno/",
        "axios": "https://esm.sh/axios@1.3.5?target=deno",
        "date-fns": "https://esm.sh/date-fns@v2.29.3?target=deno&no-check",
        "date-fns/": "https://esm.sh/date-fns@v2.29.3&target=deno&no-check/",
        "deep-object-diff": "https://esm.sh/deep-object-diff@1.1.9?target=deno",
        "deep-object-diff/": "https://esm.sh/deep-object-diff@1.1.9&target=deno/",
        "lodash": "https://esm.sh/lodash-es@4.17.21?target=deno",
        "mobx": "https://esm.sh/mobx@6.9.0/dist/mobx.esm.js?target=deno",
        "mobx/": "https://esm.sh/mobx@6.9.0/dist/mobx.esm.js&target=deno/",
        "mobx-keystone": "https://esm.sh/mobx-keystone@1.4.1?target=deno",
        "mobx-keystone/": "https://esm.sh/mobx-keystone@1.4.1&target=deno/",
        "mobx-utils": "https://esm.sh/mobx-utils@6.0.5?target=deno",
        "mobx-utils/": "https://esm.sh/mobx-utils@6.0.5&target=deno/",
        "postgresjs/": "https://deno.land/x/postgresjs@v3.3.4/mod.js/",
        "postgresjs": "https://deno.land/x/postgresjs@v3.3.4/mod.js",
        "react-native-mmkv": "https://esm.sh/react-native-mmkv@2.8.0?target=deno&bundle",
        "react-native-mmkv/": "https://esm.sh/react-native-mmkv@2.8.0&target=deno&bundle/",
        "rxjs": "https://esm.sh/rxjs@7.5.6?target=deno",
        "rxjs/": "https://esm.sh/rxjs@7.5.6&target=deno/",
        "safe-stable-stringify": "https://esm.sh/safe-stable-stringify@2.4.3?target=deno",
        "safe-stable-stringify/": "https://esm.sh/safe-stable-stringify@2.4.3&target=deno/",
        "seedrandom": "https://esm.sh/seedrandom@3.0.5?target=deno",
        "seedrandom/": "https://esm.sh/seedrandom@3.0.5&target=deno/",
        "serialize-error": "https://esm.sh/serialize-error@8.1.0?target=deno",
        "serialize-error/": "https://esm.sh/serialize-error@8.1.0&target=deno/",
        //// removed 3 entries that pointed to a private github repo here, authorized with DENO_AUTH_TOKENS
        "ts-pattern": "https://esm.sh/ts-pattern@4.1.3?target=deno",
        "ts-pattern/": "https://esm.sh/ts-pattern@4.1.3&target=deno/",
        "unique-names-generator": "https://esm.sh/unique-names-generator@4.7.1?target=deno",
        "unique-names-generator/": "https://esm.sh/unique-names-generator@4.7.1&target=deno/"
    }
}
evelant commented 1 year ago

@laktek any luck in reproducing this?

laktek commented 1 year ago

@evelant yep, was able to reproduce it. There are several issues need fixing, hoping to resolve them this week. (btw, can you verify the import_map.json is a valid JSON file without any invalid characters? currently, we don't show an error for this)

evelant commented 1 year ago

Yes it's valid JSON, the same import map works fine on edge-runtime 1.1.7

EzzatOmar commented 1 year ago

I have the same error when cloning the repo and running the examples. (No code change)

main function started
serving the request with ./examples/hello-world
server started modified
serving the request with ./examples/hello-world
serving the request with ./examples/hello-world
hyper::Error(User(Service), connection closed before message completed)
Error in main worker connection: connection closed before message completed
hyper::Error(User(Service), operation was canceled: connection was not ready

Caused by:
    connection was not ready)

When the workerTimeoutMs after the first served request is reached every other request has this problem. The first request after the timeout will return

 Error in main worker connection: connection closed before message completed

Every other request will return

 Error in main worker connection: connection closed before message completed
hyper::Error(User(Service), operation was canceled: connection was not ready

Caused by:
    connection was not ready)

Lowering workerTimeoutMs in main/index.ts to 1000 helps experiencing the error sooner.

OS: Ventura, Mac M1 edge-runtime: v1.2.18

I build code using scripts/run.sh.

evelant commented 1 year ago

@laktek Any luck with fixes here? I'm still stuck on v1.49.4 of the cli due to this.

laktek commented 1 year ago

@evelant Sorry, still working on this. Turned out the issue's scope was a bit more complex (beyond import maps) than I originally assessed. I'll update soon as I have a complete fix.

laktek commented 1 year ago

@evelant Can you try upgrading to latest CLI (1.61.1+) and see if you still experience this issue?

Also, now you should be able to use performance global object without doing any polyfills.

laktek commented 1 year ago

Closing this one - I think with the recent fixes this should be fully handled. Please upgrade to latest CLI to get the changes.