Hi there! I have recently deployed an express.js app via netlify function. There are no apparent errors in the deployment process. However, when I try to access the website, none of the statically served images are showing up. I have tested serving static files locally and everything works just fine. I am using the option to deploy directly from a github branch. When I downloaded the deployed site, all static assets are there. In fact, the site is able to serve any static HTML and CSS files just fine. It is just not working for any image files, where it always shows ERR_HTTP2_PROTOCOL_ERROR
when I try to access it via google chrome.
Netlify Site name: https://master--joyful-gumdrop-f661ac.netlify.app/
Example: When I try https://master--joyful-gumdrop-f661ac.netlify.app/style.css it works just fine. However, https://master--joyful-gumdrop-f661ac.netlify.app/logo.png will throw an error, even though both file lives in the same /public
folder.
I am in a bit of a time crunch to get this site released so any help would be much appreciated!
Latest deployment log:
7:20:03 PM: Starting post processing
7:20:03 PM: Skipping HTML post processing
7:20:04 PM: Post processing - header rules
7:20:04 PM: Post processing - redirect rules
7:20:04 PM: Post processing done
7:20:04 PM: Section completed: postprocessing
7:20:05 PM: Site is live
7:19:34 PM: build-image version: 6cae66f783f2b7ff8e3a9cdbb5031761f0b47719 (focal)
7:19:34 PM: buildbot version: 6cae66f783f2b7ff8e3a9cdbb5031761f0b47719
7:19:34 PM: Fetching cached dependencies
7:19:34 PM: Starting to download cache of 94.2MB
7:19:36 PM: Finished downloading cache in 1.405s
7:19:36 PM: Starting to extract cache
7:19:37 PM: Finished extracting cache in 760ms
7:19:37 PM: Finished fetching cache in 2.207s
7:19:37 PM: Starting to prepare the repo for build
7:19:37 PM: Preparing Git Reference refs/heads/master
7:19:38 PM: Custom build path detected. Proceeding with the specified path: ‘’
7:19:39 PM: Starting to install dependencies
7:19:39 PM: Python version set to 3.8
7:19:39 PM: Attempting Ruby version 2.7.2, read from environment
7:19:39 PM: Using Ruby version 2.7.2
7:19:40 PM: Started restoring cached go cache
7:19:40 PM: Finished restoring cached go cache
7:19:40 PM: go version go1.19.12 linux/amd64
7:19:40 PM: Using PHP version 8.0
7:19:41 PM: Started restoring cached Node.js version
7:19:42 PM: Finished restoring cached Node.js version
7:19:42 PM: v18.17.1 is already installed.
7:19:42 PM: Now using node v18.17.1 (npm v9.6.7)
7:19:43 PM: Enabling Node.js Corepack
7:19:43 PM: Started restoring cached build plugins
7:19:43 PM: Finished restoring cached build plugins
7:19:43 PM: WARNING: The environment variable ‘NODE_ENV’ is set to ‘production’. Any ‘devDependencies’ in package.json will not be installed
7:19:43 PM: Started restoring cached corepack dependencies
7:19:43 PM: Finished restoring cached corepack dependencies
7:19:43 PM: No npm workspaces detected
7:19:43 PM: Started restoring cached node modules
7:19:43 PM: Finished restoring cached node modules
7:19:43 PM: Installing npm packages using npm version 9.6.7
7:19:43 PM: up to date, audited 206 packages in 452ms
7:19:43 PM: 15 packages are looking for funding
7:19:43 PM: run npm fund
for details
7:19:43 PM: found 0 vulnerabilities
7:19:43 PM: npm packages installed
7:19:44 PM: Install dependencies script success
7:19:44 PM: Starting build script
7:19:45 PM: Detected 0 framework(s)
7:19:45 PM: Section completed: initializing
7:19:46 PM:
7:19:46 PM: Netlify Build
7:19:46 PM: ────────────────────────────────────────────────────────────────
7:19:46 PM:
7:19:46 PM: ❯ Version
7:19:46 PM: @netlify/build 29.20.6
7:19:46 PM:
7:19:46 PM: ❯ Flags
7:19:46 PM: baseRelDir: true
7:19:46 PM: buildId: 64eab2b54647d600087c64ea
7:19:46 PM: deployId: 64eab2b54647d600087c64ec
7:19:46 PM:
7:19:46 PM: ❯ Current directory
7:19:46 PM: /opt/build/repo
7:19:46 PM:
7:19:46 PM: ❯ Config file
7:19:46 PM: /opt/build/repo/netlify.toml
7:19:46 PM:
7:19:46 PM: ❯ Context
7:19:46 PM: production
7:19:46 PM:
7:19:46 PM: Build command from Netlify app
7:19:46 PM: ────────────────────────────────────────────────────────────────
7:19:46 PM:
7:19:46 PM: $ npm run
7:19:47 PM: Lifecycle scripts included in albuddy-express@1.0.0:
7:19:47 PM: test
7:19:47 PM: echo Error: no test specified && exit 1
7:19:47 PM: start
7:19:47 PM: node ./netlify/functions/server.mjs
7:19:47 PM: available via npm run-script
:
7:19:47 PM: dev
7:19:47 PM: nodemon ./netlify/functions/server.mjs
7:19:47 PM:
7:19:47 PM: (build.command completed in 207ms)
7:19:47 PM:
7:19:47 PM: Functions bundling
7:19:47 PM: ────────────────────────────────────────────────────────────────
7:19:47 PM:
7:19:47 PM: Packaging Functions from netlify/functions directory:
7:19:47 PM: - server.mjs
7:19:47 PM:
7:19:54 PM:
7:19:54 PM: (Functions bundling completed in 6.8s)
7:19:54 PM:
7:19:54 PM: Deploy site
7:19:54 PM: ────────────────────────────────────────────────────────────────
7:19:54 PM:
7:19:54 PM: Starting to deploy site from ‘’
7:19:54 PM: Calculating files to upload
7:19:54 PM: 1 new files to upload
7:19:54 PM: 1 new functions to upload
7:20:03 PM: Section completed: deploying
7:20:03 PM: Site deploy was successfully initiated
7:20:03 PM:
7:20:03 PM: (Deploy site completed in 9.5s)
7:20:03 PM:
7:20:03 PM: Netlify Build Complete
7:20:03 PM: ────────────────────────────────────────────────────────────────
7:20:03 PM:
7:20:03 PM: (Netlify Build completed in 17.1s)
7:20:04 PM: Caching artifacts
7:20:04 PM: Started saving node modules
7:20:04 PM: Finished saving node modules
7:20:04 PM: Started saving build plugins
7:20:04 PM: Finished saving build plugins
7:20:04 PM: Started saving corepack cache
7:20:04 PM: Finished saving corepack cache
7:20:04 PM: Started saving pip cache
7:20:04 PM: Finished saving pip cache
7:20:04 PM: Started saving emacs cask dependencies
7:20:04 PM: Finished saving emacs cask dependencies
7:20:04 PM: Started saving maven dependencies
7:20:04 PM: Finished saving maven dependencies
7:20:04 PM: Started saving boot dependencies
7:20:04 PM: Finished saving boot dependencies
7:20:04 PM: Started saving rust rustup cache
7:20:04 PM: Finished saving rust rustup cache
7:20:04 PM: Started saving go dependencies
7:20:04 PM: Finished saving go dependencies
7:20:04 PM: Build script success
7:20:04 PM: Section completed: building
7:20:04 PM: Uploading Cache of size 94.2MB
7:20:05 PM: Section completed: cleanup
7:20:05 PM: Finished processing build request in 31.067s