Random page crash with Runtime.UnhandledPromiseRejection

website: https://midjourney.netlify.app/

From time to time, specially with a new build, reaching any endpoint on my page will crash with Unhandled Promise Rejection.

A couple of examples from the logs are at the bottom of this email. I also included the latest build log.

This seems to be 100% reproducible on mobile when opening a link in facebook’s browser for example.

error logs:

Sep 5, 05:09:15 AM e901ef41 ERROR  Unhandled Promise Rejection 	{"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"TypeError: fetch failed","reason":{"errorType":"TypeError","errorMessage":"fetch failed","cause":{"errorType":"ConnectTimeoutError","errorMessage":"Connect Timeout Error","code":"UND_ERR_CONNECT_TIMEOUT","name":"ConnectTimeoutError","message":"Connect Timeout Error","stack":["ConnectTimeoutError: Connect Timeout Error","    at onConnectTimeout (/var/task/.netlify/shims.js:3876:26)","    at /var/task/.netlify/shims.js:3823:46","    at Immediate._onImmediate (/var/task/.netlify/shims.js:3864:9)","    at processImmediate (node:internal/timers:466:21)"]},"stack":["TypeError: fetch failed","    at Object.processResponse (/var/task/.netlify/shims.js:10542:24)","    at /var/task/.netlify/shims.js:11260:39","    at node:internal/process/task_queues:141:7","    at AsyncResource.runInAsyncScope (node:async_hooks:202:9)","    at AsyncResource.runMicrotask (node:internal/process/task_queues:138:8)","    at processTicksAndRejections (node:internal/process/task_queues:96:5)"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: TypeError: fetch failed","    at process.<anonymous> (file:///var/runtime/index.mjs:1131:17)","    at process.emit (node:events:527:28)","    at emit (node:internal/process/promises:140:20)","    at processPromiseRejections (node:internal/process/promises:274:27)","    at processTicksAndRejections (node:internal/process/task_queues:97:32)"]}
Sep 5, 05:09:15 AM e901ef41 Unknown application error occurred
Sep 5, 05:09:15 AM e901ef41 Duration: 44.98 ms	Memory Usage: 95 MB
Sep 5, 05:09:16 AM 0d4ce501 Duration: 680.24 ms	Memory Usage: 44 MB
Sep 5, 05:09:18 AM 8fc8b991 Duration: 181.30 ms	Memory Usage: 44 MB
Sep 5, 05:09:21 AM 7c43b0fe Duration: 248.76 ms	Memory Usage: 44 MB
Sep 5, 11:06:51 AM 7a8964ba Duration: 804.84 ms	Memory Usage: 95 MB	Init Duration: 220.04 ms
Sep 5, 11:07:23 AM 1495db47 ERROR  Unhandled Promise Rejection 	{"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"TypeError: fetch failed","reason":{"errorType":"TypeError","errorMessage":"fetch failed","cause":{"errorType":"ConnectTimeoutError","errorMessage":"Connect Timeout Error","code":"UND_ERR_CONNECT_TIMEOUT","name":"ConnectTimeoutError","message":"Connect Timeout Error","stack":["ConnectTimeoutError: Connect Timeout Error","    at onConnectTimeout (/var/task/.netlify/shims.js:3876:26)","    at /var/task/.netlify/shims.js:3823:46","    at Immediate._onImmediate (/var/task/.netlify/shims.js:3864:9)","    at processImmediate (node:internal/timers:466:21)"]},"stack":["TypeError: fetch failed","    at Object.processResponse (/var/task/.netlify/shims.js:10542:24)","    at /var/task/.netlify/shims.js:11260:39","    at node:internal/process/task_queues:141:7","    at AsyncResource.runInAsyncScope (node:async_hooks:202:9)","    at AsyncResource.runMicrotask (node:internal/process/task_queues:138:8)","    at processTicksAndRejections (node:internal/process/task_queues:96:5)"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: TypeError: fetch failed","    at process.<anonymous> (file:///var/runtime/index.mjs:1131:17)","    at process.emit (node:events:527:28)","    at emit (node:internal/process/promises:140:20)","    at processPromiseRejections (node:internal/process/promises:274:27)","    at processTicksAndRejections (node:internal/process/task_queues:97:32)"]}
Sep 5, 11:07:23 AM 1495db47 Unknown application error occurred

Deploy log:

12:15:54 PM: Build ready to start
12:15:56 PM: build-image version: d7b3dbfb0846505993c9a131894d1858074c90b4 (focal)
12:15:56 PM: build-image tag: v4.10.1
12:15:56 PM: buildbot version: 67e75f1ba713a8213d4b5a8ccf9708af751e2390
12:15:56 PM: Fetching cached dependencies
12:15:56 PM: Starting to download cache of 114.3MB
12:15:57 PM: Finished downloading cache in 706.566396ms
12:15:57 PM: Starting to extract cache
12:15:58 PM: Finished extracting cache in 922.138902ms
12:15:58 PM: Finished fetching cache in 1.686641003s
12:15:58 PM: Starting to prepare the repo for build
12:15:58 PM: Preparing Git Reference refs/heads/master
12:15:59 PM: Parsing package.json dependencies
12:16:00 PM: Starting build script
12:16:00 PM: Installing dependencies
12:16:00 PM: Python version set to 2.7
12:16:00 PM: Started restoring cached node version
12:16:01 PM: Finished restoring cached node version
12:16:01 PM: v16.17.0 is already installed.
12:16:01 PM: Now using node v16.17.0 (npm v8.15.0)
12:16:01 PM: Started restoring cached build plugins
12:16:01 PM: Finished restoring cached build plugins
12:16:02 PM: Attempting ruby version 2.7.2, read from environment
12:16:02 PM: Using ruby version 2.7.2
12:16:02 PM: Using PHP version 8.0
12:16:02 PM: Installing pip dependencies
12:16:02 PM: Started restoring cached pip cache
12:16:02 PM: Finished restoring cached pip cache
12:16:03 PM: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
12:16:04 PM: Collecting requests
12:16:04 PM:   Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB)
12:16:04 PM: Collecting idna<3,>=2.5; python_version < "3"
12:16:04 PM:   Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
12:16:04 PM: Collecting certifi>=2017.4.17
12:16:04 PM:   Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
12:16:04 PM: Collecting chardet<5,>=3.0.2; python_version < "3"
12:16:04 PM:   Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
12:16:04 PM: Collecting urllib3<1.27,>=1.21.1
12:16:04 PM:   Using cached urllib3-1.26.12-py2.py3-none-any.whl (140 kB)
12:16:04 PM: Installing collected packages: idna, certifi, chardet, urllib3, requests
12:16:04 PM: Successfully installed certifi-2021.10.8 chardet-4.0.0 idna-2.10 requests-2.27.1 urllib3-1.26.12
12:16:04 PM: Pip dependencies installed
12:16:05 PM: No npm workspaces detected
12:16:05 PM: Started restoring cached node modules
12:16:05 PM: Finished restoring cached node modules
12:16:05 PM: Started restoring cached go cache
12:16:05 PM: Finished restoring cached go cache
12:16:05 PM: Installing Go version 1.17 (requested 1.17)
12:16:10 PM: unset GOOS;
12:16:10 PM: unset GOARCH;
12:16:10 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.17.linux.amd64';
12:16:10 PM: export PATH="/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}";
12:16:10 PM: go version >&2;
12:16:10 PM: export GIMME_ENV="/opt/buildhome/.gimme/env/go1.17.linux.amd64.env"
12:16:10 PM: go version go1.17 linux/amd64
12:16:10 PM: Installing missing commands
12:16:10 PM: Verify run directory
12:16:11 PM: ​
12:16:11 PM: ────────────────────────────────────────────────────────────────
12:16:11 PM:   Netlify Build                                                 
12:16:11 PM: ────────────────────────────────────────────────────────────────
12:16:11 PM: ​
12:16:11 PM: ❯ Version
12:16:11 PM:   @netlify/build 27.16.1
12:16:11 PM: ​
12:16:11 PM: ❯ Flags
12:16:11 PM:   baseRelDir: true
12:16:11 PM:   buildId: 63162ecab02a910009d3c58a
12:16:11 PM:   deployId: 63162ecab02a910009d3c58c
12:16:11 PM: ​
12:16:11 PM: ❯ Current directory
12:16:11 PM:   /opt/build/repo
12:16:11 PM: ​
12:16:11 PM: ❯ Config file
12:16:11 PM:   /opt/build/repo/netlify.toml
12:16:11 PM: ​
12:16:11 PM: ❯ Context
12:16:11 PM:   production
12:16:11 PM: ​
12:16:11 PM: ────────────────────────────────────────────────────────────────
12:16:11 PM:   1. build.command from netlify.toml                            
12:16:11 PM: ────────────────────────────────────────────────────────────────
12:16:11 PM: ​
12:16:11 PM: $ npm run build
12:16:11 PM: > midjourney-ui@0.0.1 build
12:16:11 PM: > vite build
12:16:11 PM: ▲ [WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]
12:16:11 PM:     jsconfig.json:2:12:
12:16:11 PM:       2 │   "extends": "./.svelte-kit/tsconfig.json",
12:16:11 PM:         ╵              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12:16:12 PM: vite v3.0.9 building for production...
12:16:12 PM: transforming...
12:16:12 PM: 5:16:12 PM [vite-plugin-svelte] /opt/build/repo/src/routes/+layout.svelte:3:13 Layout has unused export property 'data'. If it is for external reference only, please consider using `export const data`
12:16:12 PM: 1: <script>
12:16:12 PM: 2:   import NavBar from "$lib/components/NavBar.svelte";
12:16:12 PM: 3:   export let data;
12:16:12 PM:                 ^
12:16:12 PM: 4:   let y = 0;
12:16:12 PM: 5:   let newY = 0;
12:16:13 PM: ✓ 74 modules transformed.
12:16:13 PM: rendering chunks...
12:16:13 PM: .svelte-kit/output/client/_app/immutable/assets/logo-d7407745.png                                       24.29 KiB
12:16:13 PM: .svelte-kit/output/client/vite-manifest.json                                                            7.62 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/components/pages/_layout.svelte-b8e75e56.js                    4.07 KiB / gzip: 1.92 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/components/error.svelte-50c68b40.js                            1.58 KiB / gzip: 0.73 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/components/pages/_page.svelte-a26c4a3d.js                      1.88 KiB / gzip: 0.97 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/components/pages/all/_page.svelte-f49217a1.js                  0.81 KiB / gzip: 0.47 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/components/pages/collections/_page.svelte-9876e566.js          2.92 KiB / gzip: 1.38 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/components/pages/collections/_slug_/_page.svelte-91cb514c.js   2.11 KiB / gzip: 1.01 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/components/pages/login/_page.svelte-93e649d8.js                2.07 KiB / gzip: 1.03 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/chunks/singletons-9ef3c758.js                                  1.16 KiB / gzip: 0.69 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/start-20dd3ebb.js                                              22.90 KiB / gzip: 8.77 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/chunks/stores-ed269087.js                                      0.61 KiB / gzip: 0.35 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/chunks/index-5093ab0d.js                                       0.54 KiB / gzip: 0.31 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/chunks/navigation-b79603b4.js                                  0.17 KiB / gzip: 0.15 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/chunks/api-1187a88b.js                                         2.63 KiB / gzip: 1.23 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/chunks/0-89858a7c.js                                           0.23 KiB / gzip: 0.17 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/chunks/1-c4c7b17b.js                                           0.17 KiB / gzip: 0.14 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/chunks/index-3cae51ab.js                                       15.00 KiB / gzip: 6.30 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/chunks/2-e7c670d6.js                                           0.30 KiB / gzip: 0.20 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/chunks/3-b7af1b8e.js                                           0.27 KiB / gzip: 0.18 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/chunks/4-c84883a2.js                                           0.18 KiB / gzip: 0.15 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/chunks/5-951298be.js                                           0.34 KiB / gzip: 0.23 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/chunks/SvelteSeo-6612a7de.js                                   16.01 KiB / gzip: 3.55 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/chunks/6-23f9a889.js                                           0.22 KiB / gzip: 0.16 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/assets/+page-1f4933ec.css                                      0.57 KiB / gzip: 0.35 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/assets/+layout-d6c5168d.css                                    0.91 KiB / gzip: 0.43 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/assets/Gallery-a2356a50.css                                    7.03 KiB / gzip: 1.69 KiB
12:16:13 PM: .svelte-kit/output/client/_app/immutable/chunks/Gallery-20cdfed3.js                                     60.07 KiB / gzip: 21.63 KiB
12:16:13 PM: vite v3.0.9 building SSR bundle for production...
12:16:13 PM: transforming...
12:16:13 PM: 5:16:13 PM [vite-plugin-svelte] /opt/build/repo/src/routes/+layout.svelte:3:13 Layout has unused export property 'data'. If it is for external reference only, please consider using `export const data`
12:16:13 PM: 1: <script>
12:16:13 PM: 2:   import NavBar from "$lib/components/NavBar.svelte";
12:16:13 PM: 3:   export let data;
12:16:13 PM:                 ^
12:16:13 PM: 4:   let y = 0;
12:16:13 PM: 5:   let newY = 0;
12:16:14 PM: ✓ 78 modules transformed.
12:16:14 PM: Generated an empty chunk: "hooks"
12:16:14 PM: rendering chunks...
12:16:14 PM: .svelte-kit/output/server/vite-manifest.json                                 3.39 KiB
12:16:14 PM: .svelte-kit/output/server/index.js                                           62.05 KiB
12:16:14 PM: .svelte-kit/output/server/entries/pages/_layout.svelte.js                    3.20 KiB
12:16:14 PM: .svelte-kit/output/server/entries/pages/_layout.server.js                    1.06 KiB
12:16:14 PM: .svelte-kit/output/server/entries/fallbacks/error.svelte.js                  0.60 KiB
12:16:14 PM: .svelte-kit/output/server/entries/pages/_page.svelte.js                      2.02 KiB
12:16:14 PM: .svelte-kit/output/server/entries/pages/all/_page.svelte.js                  0.58 KiB
12:16:14 PM: .svelte-kit/output/server/entries/pages/collections/_page.svelte.js          1.74 KiB
12:16:14 PM: .svelte-kit/output/server/entries/pages/collections/_slug_/_page.svelte.js   1.74 KiB
12:16:14 PM: .svelte-kit/output/server/entries/pages/collections/_slug_/_page.server.js   1.01 KiB
12:16:14 PM: .svelte-kit/output/server/entries/pages/login/_page.svelte.js                0.66 KiB
12:16:14 PM: .svelte-kit/output/server/chunks/index.js                                    9.09 KiB
12:16:14 PM: .svelte-kit/output/server/chunks/index2.js                                   2.27 KiB
12:16:14 PM: .svelte-kit/output/server/chunks/stores.js                                   1.00 KiB
12:16:14 PM: .svelte-kit/output/server/chunks/api.js                                      0.85 KiB
12:16:14 PM: .svelte-kit/output/server/chunks/Gallery.js                                  81.34 KiB
12:16:14 PM: .svelte-kit/output/server/chunks/SvelteSeo.js                                6.33 KiB
12:16:14 PM: .svelte-kit/output/server/chunks/hooks.js                                    0.00 KiB
12:16:14 PM: Run npm run preview to preview your production build locally.
12:16:14 PM: 
12:16:14 PM: > Using @sveltejs/adapter-netlify
12:16:14 PM:   ✔ done
12:16:15 PM: ​
12:16:15 PM: (build.command completed in 3.6s)
12:16:15 PM: ​
12:16:15 PM: ────────────────────────────────────────────────────────────────
12:16:15 PM:   2. Functions bundling                                         
12:16:15 PM: ────────────────────────────────────────────────────────────────
12:16:15 PM: ​
12:16:15 PM: Packaging Functions from .netlify/functions-internal directory:
12:16:15 PM:  - render.js
12:16:15 PM: ​
12:16:15 PM: ​
12:16:15 PM: (Functions bundling completed in 890ms)
12:16:15 PM: ​
12:16:15 PM: ────────────────────────────────────────────────────────────────
12:16:15 PM:   3. Deploy site                                                
12:16:15 PM: ────────────────────────────────────────────────────────────────
12:16:15 PM: ​
12:16:15 PM: Starting to deploy site from 'build'
12:16:15 PM: Creating deploy tree 
12:16:15 PM: Creating deploy upload records
12:16:16 PM: 19 new files to upload
12:16:16 PM: 1 new functions to upload
12:16:22 PM: Site deploy was successfully initiated
12:16:22 PM: ​
12:16:22 PM: (Deploy site completed in 6.2s)
12:16:22 PM: ​
12:16:22 PM: ────────────────────────────────────────────────────────────────
12:16:22 PM:   Netlify Build Complete                                        
12:16:22 PM: ────────────────────────────────────────────────────────────────
12:16:22 PM: ​
12:16:22 PM: (Netlify Build completed in 10.8s)
12:16:22 PM: Starting post processing
12:16:22 PM: Post processing - HTML
12:16:22 PM: Caching artifacts
12:16:22 PM: Started saving node modules
12:16:22 PM: Finished saving node modules
12:16:22 PM: Started saving build plugins
12:16:22 PM: Finished saving build plugins
12:16:22 PM: Started saving pip cache
12:16:22 PM: Finished saving pip cache
12:16:22 PM: Started saving emacs cask dependencies
12:16:22 PM: Finished saving emacs cask dependencies
12:16:22 PM: Started saving maven dependencies
12:16:22 PM: Finished saving maven dependencies
12:16:22 PM: Started saving boot dependencies
12:16:22 PM: Finished saving boot dependencies
12:16:22 PM: Started saving rust rustup cache
12:16:22 PM: Finished saving rust rustup cache
12:16:22 PM: Started saving go dependencies
12:16:22 PM: Finished saving go dependencies
12:16:22 PM: Post processing - header rules
12:16:22 PM: Build script success
12:16:22 PM: Post processing - redirect rules
12:16:22 PM: Post processing done
12:16:23 PM: Uploading Cache of size 114.3MB
12:16:24 PM: Finished processing build request in 27.780177545s
12:16:25 PM: Site is live ✨

Please help. This means that if I share a link on FB, all the users on mobile, meaning most of them, will just get a site crash.

Hi,

Could you share your repository?

Also, does it help if you add an environment variable with the name: AWS_LAMBDA_JS_RUNTIME and value node14.x?

Lastly, could you try to use Svelte’s Netlify Adapter with Edge Functions enabled?

I can share my repo, but it’s a private github repo. What’s your github username?

I added the env var to my deploy env (actually it’s nodejs14.x) but that makes it crash every time now with an error:

I tried adding the edge functions but then I also got a crash.

my config with edge functions:

import adapter from '@sveltejs/adapter-netlify';

/** @type {import('@sveltejs/kit').Config} */
const config = {
	kit: {
		adapter: adapter({edge: true}),
	}
};
export default config;

The nodejs14.x crash:

Sep 7, 09:24:14 AM 03134908 2022-09-07T14:24:15.104Z	undefined	ERROR	Uncaught Exception 	{"errorType":"Runtime.UserCodeSyntaxError","errorMessage":"SyntaxError: Unexpected token '??='","stack":["Runtime.UserCodeSyntaxError: SyntaxError: Unexpected token '??='","    at _loadUserApp (/var/runtime/UserFunction.js:218:13)","    at Object.module.exports.load (/var/runtime/UserFunction.js:279:17)","    at Object.<anonymous> (/var/runtime/index.js:43:34)","    at Module._compile (internal/modules/cjs/loader.js:1085:14)","    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)","    at Module.load (internal/modules/cjs/loader.js:950:32)","    at Function.Module._load (internal/modules/cjs/loader.js:790:12)","    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)","    at internal/main/run_main_module.js:17:47"]}
Sep 7, 09:24:14 AM 03134908 Unknown application error occurred
Sep 7, 09:24:14 AM 03134908 Runtime.UserCodeSyntaxError

The edge functions crash:

Sep 7, 07:47:10 AM: 20a614c5 ERROR  Unhandled Promise Rejection 	{"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"TypeError: fetch failed","reason":{"errorType":"TypeError","errorMessage":"fetch failed","cause":{"errorType":"ConnectTimeoutError","errorMessage":"Connect Timeout Error","code":"UND_ERR_CONNECT_TIMEOUT","name":"ConnectTimeoutError","message":"Connect Timeout Error","stack":["ConnectTimeoutError: Connect Timeout Error","    at onConnectTimeout (/var/task/.netlify/shims.js:3876:26)","    at /var/task/.netlify/shims.js:3823:46","    at Immediate._onImmediate (/var/task/.netlify/shims.js:3864:9)","    at processImmediate (node:internal/timers:466:21)"]},"stack":["TypeError: fetch failed","    at Object.processResponse (/var/task/.netlify/shims.js:10542:24)","    at /var/task/.netlify/shims.js:11260:39","    at node:internal/process/task_queues:141:7","    at AsyncResource.runInAsyncScope (node:async_hooks:202:9)","    at AsyncResource.runMicrotask (node:internal/process/task_queues:138:8)","    at processTicksAndRejections (node:internal/process/task_queues:96:5)"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: TypeError: fetch failed","    at process.<anonymous> (file:///var/runtime/index.mjs:1131:17)","    at process.emit (node:events:527:28)","    at emit (node:internal/process/promises:140:20)","    at processPromiseRejections (node:internal/process/promises:274:27)","    at processTicksAndRejections (node:internal/process/task_queues:97:32)"]}Sep 7, 07:47:10 AM: 20a614c5 RequestId: 20a614c5-e2d9-4762-8ef8-ea7366a27c31 Error: Runtime exited with error: signal: segmentation faultSep 7, 07:47:10 AM: 20a614c5 Runtime.ExitError

That’s because, Nullish Coalescing is not supported in Node 14:

https://node.green/#ES2021-features-Logical-Assignment-----basic-support

You can try to change your code to use an alternative approach - that’s just a test.

Or you can add Hrishikesh-K on GitHub to your repo.

I added you to the repo

Hey @kevinyaya,

I tried deploying your repo as a different site and I’m getting a CORS error from the URL set in src/lib/constants.js. I can workaround that issue, but wanted to ask if there’s some special config needed.

it’s calling a private API, which doesn’t allow CORS except from the URLs I set.
what are you deploying it as so I can allow it?

I had thought so. It’s here: https://animated-speculoos-24cb2e.netlify.app/

Done, I gave your site access to the backend.

I’m trying to reproduce this issue multiple times, without success. Even opening the link from Facebook on mobile is working normally - on your as well as the one I deployed.

Yeah, not sure why it stopped happening but I’m not getting the crashes anymore, although I didn’t change anything

Hey there, @kevinyaya :wave:

Thanks for confirming it is not happening anymore. Should this issue start again, please come back and let us know with steps to reproduce it.

Happy building :rocket:

Hi Hillary, I’m still having this intermittent issue.

The error I’m getting is this, but I can’t find anything about it anywhere:

{'errorType': 'Runtime.UnhandledPromiseRejection',
 'errorMessage': 'TypeError: fetch failed',
 'reason': {'errorType': 'TypeError',
  'errorMessage': 'fetch failed',
  'cause': {'errorType': 'ConnectTimeoutError',
   'errorMessage': 'Connect Timeout Error',
   'code': 'UND_ERR_CONNECT_TIMEOUT',
   'name': 'ConnectTimeoutError',
   'message': 'Connect Timeout Error',
   'stack': ['ConnectTimeoutError: Connect Timeout Error',
    '    at onConnectTimeout (file:///var/task/.netlify/functions-internal/render.mjs:21699:26)',
    '    at file:///var/task/.netlify/functions-internal/render.mjs:21657:46',
    '    at Immediate._onImmediate (file:///var/task/.netlify/functions-internal/render.mjs:21688:9)',
    '    at processImmediate (node:internal/timers:466:21)']},
  'stack': ['TypeError: fetch failed',
   '    at fetch2 (file:///var/task/.netlify/functions-internal/render.mjs:28874:15)',
   '    at processTicksAndRejections (node:internal/process/task_queues:96:5)',
   '    at runNextTicks (node:internal/process/task_queues:65:3)',
   '    at processImmediate (node:internal/timers:437:9)',
   '    at async Object.fetch (file:///var/task/.netlify/functions-internal/render.mjs:31193:12)',
   '    at async Object.<anonymous> (file:///var/task/.netlify/functions-internal/render.mjs:29932:21)',
   '    at async getJobs (file:///var/task/.netlify/functions-internal/render.mjs:1005:15)',
   '    at async getNextJobs (file:///var/task/.netlify/functions-internal/render.mjs:4188:25)',
   '    at async refresh (file:///var/task/.netlify/functions-internal/render.mjs:4151:9)']},
 'promise': {},
 'stack': ['Runtime.UnhandledPromiseRejection: TypeError: fetch failed',
  '    at process.<anonymous> (file:///var/runtime/index.mjs:1194:17)',
  '    at process.emit (node:events:527:28)',
  '    at emit (node:internal/process/promises:140:20)',
  '    at processPromiseRejections (node:internal/process/promises:274:27)',
  '    at processTicksAndRejections (node:internal/process/task_queues:97:32)',
  '    at runNextTicks (node:internal/process/task_queues:65:3)',
  '    at processImmediate (node:internal/timers:437:9)']}

The website is now https://maquinarte.mx

Where on your website is this issue happening? I tried to load it and I don’t see any issues.

It happens intermittently. If you refresh enough times, it will happen again

I refreshed about 25 times without success. Mind sharing a HAR file?

It’s pretty random but it still happens a lot.

I don’t know what a HAR file is.

All I know is if I click on the link to get the logs, I get:

Endpoint: https://machinart.app/.netlify/functions/render

Feb 22, 01:49:59 PM: 76c53c4b Duration: 1107.79 ms	Memory Usage: 106 MB	Init Duration: 228.87 ms
Feb 22, 01:52:19 PM: 8cac923b Duration: 866.98 ms	Memory Usage: 106 MB
Feb 22, 01:59:44 PM: bebc09ff Duration: 1175.47 ms	Memory Usage: 105 MB	Init Duration: 245.04 ms
Feb 22, 02:02:39 PM: e258bf9b ERROR  Error: CORS error: No 'Access-Control-Allow-Origin' header is present on the requested resource
Feb 22, 02:02:39 PM: e258bf9b ERROR      at Object.fetch (file:///var/task/.netlify/functions-internal/render.mjs:30088:17)
Feb 22, 02:02:39 PM: e258bf9b ERROR      at processTicksAndRejections (node:internal/process/task_queues:96:5)
Feb 22, 02:02:39 PM: e258bf9b ERROR      at async getCollections (file:///var/task/.netlify/functions-internal/render.mjs:1039:15)
Feb 22, 02:02:39 PM: e258bf9b ERROR      at async load (file:///var/task/.netlify/functions-internal/render.mjs:1178:25)
Feb 22, 02:02:39 PM: e258bf9b ERROR      at async load_data (file:///var/task/.netlify/functions-internal/render.mjs:30050:18)
Feb 22, 02:02:39 PM: e258bf9b ERROR      at async file:///var/task/.netlify/functions-internal/render.mjs:30981:18
Feb 22, 02:02:40 PM: e258bf9b Duration: 1244.37 ms	Memory Usage: 106 MB	Init Duration: 261.54 ms
Feb 22, 02:02:58 PM: e35422db Duration: 787.38 ms	Memory Usage: 106 MB
Feb 22, 02:04:57 PM: 199fadde Duration: 891.96 ms	Memory Usage: 106 MB
Feb 22, 02:08:09 PM: cba75435 ERROR  Unhandled Promise Rejection 	{"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"TypeError: fetch failed","reason":{"errorType":"TypeError","errorMessage":"fetch failed","cause":{"errorType":"ConnectTimeoutError","errorMessage":"Connect Timeout Error","code":"UND_ERR_CONNECT_TIMEOUT","name":"ConnectTimeoutError","message":"Connect Timeout Error","stack":["ConnectTimeoutError: Connect Timeout Error","    at onConnectTimeout (file:///var/task/.netlify/functions-internal/render.mjs:21835:26)","    at file:///var/task/.netlify/functions-internal/render.mjs:21793:46","    at Immediate._onImmediate (file:///var/task/.netlify/functions-internal/render.mjs:21824:9)","    at processImmediate (node:internal/timers:466:21)"]},"stack":["TypeError: fetch failed","    at fetch2 (file:///var/task/.netlify/functions-internal/render.mjs:29010:15)","    at processTicksAndRejections (node:internal/process/task_queues:96:5)","    at runNextTicks (node:internal/process/task_queues:65:3)","    at processImmediate (node:internal/timers:437:9)","    at async Object.fetch (file:///var/task/.netlify/functions-internal/render.mjs:31329:12)","    at async Object.fetch (file:///var/task/.netlify/functions-internal/render.mjs:30068:21)","    at async getJobs (file:///var/task/.netlify/functions-internal/render.mjs:1015:15)","    at async getNextJobs (file:///var/task/.netlify/functions-internal/render.mjs:4448:25)","    at async refresh (file:///var/task/.netlify/functions-internal/render.mjs:4411:9)"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: TypeError: fetch failed","    at process.<anonymous> (file:///var/runtime/index.mjs:1194:17)","    at process.emit (node:events:527:28)","    at emit (node:internal/process/promises:140:20)","    at processPromiseRejections (node:internal/process/promises:274:27)","    at processTicksAndRejections (node:internal/process/task_queues:97:32)","    at runNextTicks (node:internal/process/task_queues:65:3)","    at processImmediate (node:internal/timers:437:9)"]}
Feb 22, 02:08:09 PM: cba75435 ERROR  [ERROR] [1677096489594] LAMBDA_RUNTIME Failed to post handler success response. Http response code: 400.
Feb 22, 02:08:09 PM: cba75435 ERROR  RequestId: cba75435-4811-4fc4-a7fd-6fef562d2006 Error: Runtime exited with error: exit status 128
Feb 22, 02:08:09 PM: cba75435 ERROR  Runtime.ExitError
Feb 22, 02:08:09 PM: cba75435 Duration: 5.47 ms	Memory Usage: 106 MB
Feb 22, 02:08:11 PM: a6d6c327 Duration: 1000.16 ms	Memory Usage: 56 MB
Feb 22, 02:10:20 PM: 7f6b2f35 ERROR  Error: Not found: /sitemap.xml
Feb 22, 02:10:20 PM: 7f6b2f35 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31676:18)
Feb 22, 02:10:20 PM: 7f6b2f35 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31571:34)
Feb 22, 02:10:20 PM: 7f6b2f35 ERROR      at Object.#options.hooks.handle (file:///var/task/.netlify/functions-internal/render.mjs:31712:59)
Feb 22, 02:10:20 PM: 7f6b2f35 ERROR      at respond (file:///var/task/.netlify/functions-internal/render.mjs:31569:44)
Feb 22, 02:10:21 PM: 7f6b2f35 Duration: 1011.75 ms	Memory Usage: 56 MB
Feb 22, 02:10:21 PM: a9de6873 ERROR  Error: Not found: /sitemap.xml
Feb 22, 02:10:21 PM: a9de6873 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31676:18)
Feb 22, 02:10:21 PM: a9de6873 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31571:34)
Feb 22, 02:10:21 PM: a9de6873 ERROR      at Object.#options.hooks.handle (file:///var/task/.netlify/functions-internal/render.mjs:31712:59)
Feb 22, 02:10:21 PM: a9de6873 ERROR      at respond (file:///var/task/.netlify/functions-internal/render.mjs:31569:44)
Feb 22, 02:10:22 PM: a9de6873 Duration: 651.77 ms	Memory Usage: 56 MB
Feb 22, 02:10:25 PM: 99af256e Duration: 516.23 ms	Memory Usage: 56 MB
Feb 22, 02:10:26 PM: 7030a049 Duration: 542.79 ms	Memory Usage: 56 MB
Feb 22, 02:10:30 PM: b6773db2 Duration: 583.33 ms	Memory Usage: 56 MB
Feb 22, 02:10:32 PM: 7fb0d888 ERROR  Error: Not found: /favicon.png
Feb 22, 02:10:32 PM: 7fb0d888 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31676:18)
Feb 22, 02:10:32 PM: 7fb0d888 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31571:34)
Feb 22, 02:10:32 PM: 7fb0d888 ERROR      at Object.#options.hooks.handle (file:///var/task/.netlify/functions-internal/render.mjs:31712:59)
Feb 22, 02:10:32 PM: 7fb0d888 ERROR      at respond (file:///var/task/.netlify/functions-internal/render.mjs:31569:44)
Feb 22, 02:10:33 PM: f78a5868 ERROR  Error: Not found: /favicon.png
Feb 22, 02:10:33 PM: f78a5868 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31676:18)
Feb 22, 02:10:33 PM: f78a5868 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31571:34)
Feb 22, 02:10:33 PM: f78a5868 ERROR      at Object.#options.hooks.handle (file:///var/task/.netlify/functions-internal/render.mjs:31712:59)
Feb 22, 02:10:33 PM: f78a5868 ERROR      at respond (file:///var/task/.netlify/functions-internal/render.mjs:31569:44)
Feb 22, 02:10:33 PM: 7fb0d888 Duration: 615.19 ms	Memory Usage: 56 MB
Feb 22, 02:10:34 PM: f78a5868 Duration: 519.00 ms	Memory Usage: 57 MB
Feb 22, 02:10:37 PM: 81f9e211 ERROR  Error: Not found: /sitemap.xml
Feb 22, 02:10:37 PM: 81f9e211 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31676:18)
Feb 22, 02:10:37 PM: 81f9e211 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31571:34)
Feb 22, 02:10:37 PM: 81f9e211 ERROR      at Object.#options.hooks.handle (file:///var/task/.netlify/functions-internal/render.mjs:31712:59)
Feb 22, 02:10:37 PM: 81f9e211 ERROR      at respond (file:///var/task/.netlify/functions-internal/render.mjs:31569:44)
Feb 22, 02:10:38 PM: 81f9e211 Duration: 754.75 ms	Memory Usage: 58 MB
Feb 22, 02:10:38 PM: c2994092 ERROR  Error: Not found: /sitemap.xml
Feb 22, 02:10:38 PM: c2994092 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31676:18)
Feb 22, 02:10:38 PM: c2994092 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31571:34)
Feb 22, 02:10:38 PM: c2994092 ERROR      at Object.#options.hooks.handle (file:///var/task/.netlify/functions-internal/render.mjs:31712:59)
Feb 22, 02:10:38 PM: c2994092 ERROR      at respond (file:///var/task/.netlify/functions-internal/render.mjs:31569:44)
Feb 22, 02:10:39 PM: c2994092 Duration: 668.05 ms	Memory Usage: 58 MB
Feb 22, 02:11:39 PM: 9be6772c Duration: 780.83 ms	Memory Usage: 58 MB
Feb 22, 02:11:47 PM: d6fa6d54 ERROR  Error: Not found: /favicon.png
Feb 22, 02:11:47 PM: d6fa6d54 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31676:18)
Feb 22, 02:11:47 PM: d6fa6d54 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31571:34)
Feb 22, 02:11:47 PM: d6fa6d54 ERROR      at Object.#options.hooks.handle (file:///var/task/.netlify/functions-internal/render.mjs:31712:59)
Feb 22, 02:11:47 PM: d6fa6d54 ERROR      at respond (file:///var/task/.netlify/functions-internal/render.mjs:31569:44)
Feb 22, 02:11:48 PM: d6fa6d54 Duration: 852.59 ms	Memory Usage: 58 MB
Feb 22, 02:11:52 PM: 26832406 ERROR  Error: Not found: /sitemap.xml
Feb 22, 02:11:52 PM: 26832406 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31676:18)
Feb 22, 02:11:52 PM: 26832406 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31571:34)
Feb 22, 02:11:52 PM: 26832406 ERROR      at Object.#options.hooks.handle (file:///var/task/.netlify/functions-internal/render.mjs:31712:59)
Feb 22, 02:11:52 PM: 26832406 ERROR      at respond (file:///var/task/.netlify/functions-internal/render.mjs:31569:44)
Feb 22, 02:11:53 PM: 26832406 Duration: 816.04 ms	Memory Usage: 59 MB
Feb 22, 02:11:55 PM: 2add8a0d Duration: 608.66 ms	Memory Usage: 60 MB
Feb 22, 02:12:03 PM: 2e94d918 ERROR  Error: Not found: /favicon.png
Feb 22, 02:12:03 PM: 2e94d918 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31676:18)
Feb 22, 02:12:03 PM: 2e94d918 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31571:34)
Feb 22, 02:12:03 PM: 2e94d918 ERROR      at Object.#options.hooks.handle (file:///var/task/.netlify/functions-internal/render.mjs:31712:59)
Feb 22, 02:12:03 PM: 2e94d918 ERROR      at respond (file:///var/task/.netlify/functions-internal/render.mjs:31569:44)
Feb 22, 02:12:04 PM: 2e94d918 Duration: 851.08 ms	Memory Usage: 61 MB
Feb 22, 02:12:09 PM: 40bbc0d2 ERROR  Error: Not found: /sitemap.xml
Feb 22, 02:12:09 PM: 40bbc0d2 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31676:18)
Feb 22, 02:12:09 PM: 40bbc0d2 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31571:34)
Feb 22, 02:12:09 PM: 40bbc0d2 ERROR      at Object.#options.hooks.handle (file:///var/task/.netlify/functions-internal/render.mjs:31712:59)
Feb 22, 02:12:09 PM: 40bbc0d2 ERROR      at respond (file:///var/task/.netlify/functions-internal/render.mjs:31569:44)
Feb 22, 02:12:10 PM: 40bbc0d2 Duration: 751.62 ms	Memory Usage: 62 MB
Feb 22, 02:14:05 PM: e6187d44 Duration: 861.51 ms	Memory Usage: 62 MB
Feb 22, 02:14:37 PM: 55842417 Duration: 959.73 ms	Memory Usage: 62 MB
Feb 22, 02:14:50 PM: f5a6efac ERROR  Error: CORS error: No 'Access-Control-Allow-Origin' header is present on the requested resource
Feb 22, 02:14:50 PM: f5a6efac ERROR      at Object.fetch (file:///var/task/.netlify/functions-internal/render.mjs:30088:17)
Feb 22, 02:14:50 PM: f5a6efac ERROR      at processTicksAndRejections (node:internal/process/task_queues:96:5)
Feb 22, 02:14:50 PM: f5a6efac ERROR      at async getCollections (file:///var/task/.netlify/functions-internal/render.mjs:1039:15)
Feb 22, 02:14:50 PM: f5a6efac ERROR      at async load (file:///var/task/.netlify/functions-internal/render.mjs:1178:25)
Feb 22, 02:14:50 PM: f5a6efac ERROR      at async load_data (file:///var/task/.netlify/functions-internal/render.mjs:30050:18)
Feb 22, 02:14:50 PM: f5a6efac ERROR      at async file:///var/task/.netlify/functions-internal/render.mjs:30981:18
Feb 22, 02:14:51 PM: f5a6efac Duration: 727.83 ms	Memory Usage: 62 MB
Feb 22, 02:17:46 PM: acc2cd48 Duration: 810.17 ms	Memory Usage: 62 MB
Feb 22, 02:20:22 PM: 387cbb52 Duration: 934.63 ms	Memory Usage: 62 MB
Feb 22, 02:20:26 PM: 63ab5c81 Duration: 536.50 ms	Memory Usage: 62 MB
Feb 22, 02:20:44 PM: 52f5a0ed Duration: 890.36 ms	Memory Usage: 63 MB
Feb 22, 02:21:06 PM: 52a58f2b Duration: 814.02 ms	Memory Usage: 63 MB
Feb 22, 02:24:20 PM: baa0f074 Duration: 980.96 ms	Memory Usage: 105 MB	Init Duration: 212.25 ms
Feb 22, 02:24:24 PM: 6420c30c ERROR  Error: Not found: /apple-touch-icon.png
Feb 22, 02:24:24 PM: 6420c30c ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31676:18)
Feb 22, 02:24:24 PM: 6420c30c ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31571:34)
Feb 22, 02:24:24 PM: 6420c30c ERROR      at Object.#options.hooks.handle (file:///var/task/.netlify/functions-internal/render.mjs:31712:59)
Feb 22, 02:24:24 PM: 6420c30c ERROR      at respond (file:///var/task/.netlify/functions-internal/render.mjs:31569:44)
Feb 22, 02:24:24 PM: 94318a6a ERROR  Error: Not found: /apple-touch-icon-precomposed.png
Feb 22, 02:24:24 PM: 94318a6a ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31676:18)
Feb 22, 02:24:24 PM: 94318a6a ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31571:34)
Feb 22, 02:24:24 PM: 94318a6a ERROR      at Object.#options.hooks.handle (file:///var/task/.netlify/functions-internal/render.mjs:31712:59)
Feb 22, 02:24:24 PM: 94318a6a ERROR      at respond (file:///var/task/.netlify/functions-internal/render.mjs:31569:44)
Feb 22, 02:24:25 PM: 6420c30c Duration: 555.19 ms	Memory Usage: 105 MB
Feb 22, 02:24:25 PM: 94318a6a Duration: 1052.82 ms	Memory Usage: 105 MB	Init Duration: 234.02 ms
Feb 22, 02:24:26 PM: 01a0a598 Duration: 1468.35 ms	Memory Usage: 106 MB	Init Duration: 301.99 ms
Feb 22, 02:24:38 PM: 5994566a Duration: 914.71 ms	Memory Usage: 106 MB
Feb 22, 02:24:42 PM: 594bf510 Duration: 663.29 ms	Memory Usage: 106 MB
Feb 22, 02:24:42 PM: 9b384162 Duration: 1209.98 ms	Memory Usage: 105 MB
Feb 22, 02:24:46 PM: baad0b7e Duration: 606.42 ms	Memory Usage: 105 MB
Feb 22, 02:24:46 PM: e2b857f0 Duration: 640.31 ms	Memory Usage: 106 MB
Feb 22, 02:24:50 PM: 923b25c2 Duration: 587.38 ms	Memory Usage: 107 MB
Feb 22, 02:24:51 PM: f40cb225 Duration: 490.16 ms	Memory Usage: 108 MB
Feb 22, 02:31:31 PM: 571edcea Duration: 1019.66 ms	Memory Usage: 105 MB
Feb 22, 02:32:56 PM: 39c05056 Duration: 892.42 ms	Memory Usage: 105 MB
Feb 22, 02:36:02 PM: e334203e ERROR  Error: Not found: /.env
Feb 22, 02:36:02 PM: e334203e ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31676:18)
Feb 22, 02:36:02 PM: e334203e ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31571:34)
Feb 22, 02:36:02 PM: e334203e ERROR      at Object.#options.hooks.handle (file:///var/task/.netlify/functions-internal/render.mjs:31712:59)
Feb 22, 02:36:02 PM: e334203e ERROR      at respond (file:///var/task/.netlify/functions-internal/render.mjs:31569:44)
Feb 22, 02:36:04 PM: e334203e Duration: 1109.40 ms	Memory Usage: 106 MB	Init Duration: 232.24 ms
Feb 22, 02:36:11 PM: e12fd75a Duration: 813.23 ms	Memory Usage: 106 MB
Feb 22, 02:46:28 PM: e252715c Duration: 1116.42 ms	Memory Usage: 105 MB	Init Duration: 243.59 ms
Feb 22, 02:50:48 PM: 97fdf168 Duration: 926.82 ms	Memory Usage: 105 MB
Feb 22, 02:55:00 PM: 0da534d4 Duration: 1011.57 ms	Memory Usage: 105 MB
Feb 22, 02:59:14 PM: 217d150d Duration: 830.64 ms	Memory Usage: 105 MB
Feb 22, 03:05:17 PM: bdd205d6 Duration: 1154.03 ms	Memory Usage: 106 MB	Init Duration: 279.20 ms
Feb 22, 03:05:31 PM: e66e8e33 Duration: 799.39 ms	Memory Usage: 106 MB
Feb 22, 03:09:41 PM: 30a5eace Duration: 869.80 ms	Memory Usage: 106 MB
Feb 22, 03:13:51 PM: 045b8d34 Duration: 924.96 ms	Memory Usage: 106 MB
Feb 22, 03:18:11 PM: 520e1e48 Duration: 810.84 ms	Memory Usage: 106 MB
Feb 22, 03:28:19 PM: d0f42608 Duration: 1066.08 ms	Memory Usage: 106 MB	Init Duration: 226.64 ms
Feb 22, 03:28:22 PM: a6924af9 Duration: 569.64 ms	Memory Usage: 106 MB
Feb 22, 03:32:35 PM: 7cb8a591 Duration: 775.24 ms	Memory Usage: 106 MB
Feb 22, 03:36:53 PM: 45d7f1fe Duration: 945.59 ms	Memory Usage: 106 MB
Feb 22, 03:38:31 PM: 71f9f569 Duration: 782.77 ms	Memory Usage: 106 MB
Feb 22, 03:42:42 PM: 9bc74ee5 ERROR  Error: Not found: /.env
Feb 22, 03:42:42 PM: 9bc74ee5 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31676:18)
Feb 22, 03:42:42 PM: 9bc74ee5 ERROR      at resolve (file:///var/task/.netlify/functions-internal/render.mjs:31571:34)
Feb 22, 03:42:42 PM: 9bc74ee5 ERROR      at Object.#options.hooks.handle (file:///var/task/.netlify/functions-internal/render.mjs:31712:59)
Feb 22, 03:42:42 PM: 9bc74ee5 ERROR      at respond (file:///var/task/.netlify/functions-internal/render.mjs:31569:44)
Feb 22, 03:42:43 PM: 9bc74ee5 Duration: 908.04 ms	Memory Usage: 107 MB
Feb 22, 03:44:32 PM: f05aad9b Duration: 762.59 ms	Memory Usage: 108 MB
Feb 22, 03:44:35 PM: cc890d58 Duration: 505.26 ms	Memory Usage: 109 MB
Feb 22, 03:44:37 PM: 95a01009 Duration: 544.76 ms	Memory Usage: 109 MB
Feb 22, 03:44:39 PM: 0231d8d4 Duration: 556.39 ms	Memory Usage: 109 MB
Feb 22, 03:44:41 PM: 787278e0 Duration: 503.73 ms	Memory Usage: 109 MB
Feb 22, 03:44:46 PM: 2513e7cc Duration: 773.27 ms	Memory Usage: 109 MB
Feb 22, 03:44:48 PM: d5718b5c Duration: 567.12 ms	Memory Usage: 109 MB
Feb 22, 03:44:49 PM: 75b79870 Duration: 513.81 ms	Memory Usage: 110 MB
Feb 22, 03:44:53 PM: a1a16acb Duration: 505.78 ms	Memory Usage: 110 MB
Feb 22, 03:44:59 PM: 3d96ddea Duration: 779.64 ms	Memory Usage: 112 MB
Feb 22, 03:45:00 PM: b09fe962 Duration: 505.62 ms	Memory Usage: 112 MB
Feb 22, 03:45:02 PM: d1af405a Duration: 444.86 ms	Memory Usage: 112 MB
Feb 22, 03:45:03 PM: c1c931bf Duration: 541.45 ms	Memory Usage: 112 MB
Feb 22, 03:45:05 PM: d1b43806 Duration: 518.54 ms	Memory Usage: 112 MB
Feb 22, 03:45:06 PM: a327ce10 Duration: 598.15 ms	Memory Usage: 112 MB
Feb 22, 03:45:08 PM: b1b23e8b Duration: 535.79 ms	Memory Usage: 112 MB
Feb 22, 03:45:09 PM: 16840fe4 Duration: 493.27 ms	Memory Usage: 112 MB
Feb 22, 03:45:11 PM: f99ef3cd Duration: 598.68 ms	Memory Usage: 112 MB
Feb 22, 03:45:12 PM: 43ca7b67 Duration: 530.30 ms	Memory Usage: 113 MB
Feb 22, 03:45:16 PM: b095132e Duration: 515.76 ms	Memory Usage: 114 MB
Feb 22, 03:45:18 PM: e050b915 Duration: 489.67 ms	Memory Usage: 114 MB
Feb 22, 03:45:21 PM: 86d6f076 Duration: 590.06 ms	Memory Usage: 115 MB
Feb 22, 03:45:26 PM: e79964ae Duration: 782.18 ms	Memory Usage: 116 MB
Feb 22, 03:45:36 PM: 58788539 Duration: 817.84 ms	Memory Usage: 116 MB
Feb 22, 03:45:48 PM: 88190453 ERROR  Unhandled Promise Rejection 	{"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"TypeError: fetch failed","reason":{"errorType":"TypeError","errorMessage":"fetch failed","cause":{"errorType":"ConnectTimeoutError","errorMessage":"Connect Timeout Error","code":"UND_ERR_CONNECT_TIMEOUT","name":"ConnectTimeoutError","message":"Connect Timeout Error","stack":["ConnectTimeoutError: Connect Timeout Error","    at onConnectTimeout (file:///var/task/.netlify/functions-internal/render.mjs:21835:26)","    at file:///var/task/.netlify/functions-internal/render.mjs:21793:46","    at Immediate._onImmediate (file:///var/task/.netlify/functions-internal/render.mjs:21824:9)","    at processImmediate (node:internal/timers:466:21)"]},"stack":["TypeError: fetch failed","    at fetch2 (file:///var/task/.netlify/functions-internal/render.mjs:29010:15)","    at processTicksAndRejections (node:internal/process/task_queues:96:5)","    at runNextTicks (node:internal/process/task_queues:65:3)","    at processImmediate (node:internal/timers:437:9)","    at async Object.fetch (file:///var/task/.netlify/functions-internal/render.mjs:31329:12)","    at async Object.fetch (file:///var/task/.netlify/functions-internal/render.mjs:30068:21)","    at async getJobs (file:///var/task/.netlify/functions-internal/render.mjs:1015:15)","    at async getNextJobs (file:///var/task/.netlify/functions-internal/render.mjs:4448:25)","    at async refresh (file:///var/task/.netlify/functions-internal/render.mjs:4411:9)"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: TypeError: fetch failed","    at process.<anonymous> (file:///var/runtime/index.mjs:1194:17)","    at process.emit (node:events:527:28)","    at emit (node:internal/process/promises:140:20)","    at processPromiseRejections (node:internal/process/promises:274:27)","    at processTicksAndRejections (node:internal/process/task_queues:97:32)","    at runNextTicks (node:internal/process/task_queues:65:3)","    at processImmediate (node:internal/timers:437:9)"]}
Feb 22, 03:45:48 PM: 88190453 ERROR  [ERROR] [1677102348079] LAMBDA_RUNTIME Failed to post handler success response. Http response code: 400.
Feb 22, 03:45:48 PM: 88190453 ERROR  RequestId: 88190453-18ce-4659-8123-30c9dd718090 Error: Runtime exited with error: exit status 128
Feb 22, 03:45:48 PM: 88190453 ERROR  Runtime.ExitError
Feb 22, 03:45:48 PM: 88190453 Duration: 8.09 ms	Memory Usage: 116 MB
Feb 22, 03:45:51 PM: 04d561cd Duration: 959.94 ms	Memory Usage: 56 MB
Feb 22, 03:46:20 PM: fa2d0464 Duration: 887.74 ms	Memory Usage: 56 MB

Since I don’t know anything about the netlify render functions it’s hard to tell why it does not work.

hi @ksallee

This is how you can get a HAR file:

https://toolbox.googleapps.com/apps/har_analyzer/

Can you please get that on the broken requests so our team can investigate?

Thanks!