Skip to content

Instantly share code, notes, and snippets.

@hoangddt
Created January 31, 2024 05:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoangddt/97e407a91a952147891c5c3da7e8e859 to your computer and use it in GitHub Desktop.
Save hoangddt/97e407a91a952147891c5c3da7e8e859 to your computer and use it in GitHub Desktop.
UND_ERR_INVALID_ARG log
0|example.io | upstream image response failed for /img/assets/hero.png TypeError: fetch failed
0|example.io | at Object.fetch (node:internal/deps/undici/undici:11730:11)
0|example.io | at async invokeRequest (/var/www/example.io/node_modules/next/dist/server/lib/server-ipc/invoke-request.js:16:12)
0|example.io | at async /var/www/example.io/node_modules/next/dist/server/next-server.js:362:35
0|example.io | at async imageOptimizer (/var/www/example.io/node_modules/next/dist/server/image-optimizer.js:537:13)
0|example.io | at async cacheEntry.imageResponseCache.get.incrementalCache (/var/www/example.io/node_modules/next/dist/server/next-server.js:517:61)
0|example.io | at async /var/www/example.io/node_modules/next/dist/server/response-cache/index.js:102:36 {
0|example.io | cause: InvalidArgumentError: invalid connection header
0|example.io | at processHeader (/var/www/example.io/node_modules/next/dist/compiled/undici/index.js:1:102994)
0|example.io | at new Request (/var/www/example.io/node_modules/next/dist/compiled/undici/index.js:1:100295)
0|example.io | at [dispatch] (/var/www/example.io/node_modules/next/dist/compiled/undici/index.js:1:64352)
0|example.io | at Intercept (/var/www/example.io/node_modules/next/dist/compiled/undici/index.js:2:93153)
0|example.io | at [Intercepted Dispatch] (/var/www/example.io/node_modules/next/dist/compiled/undici/index.js:1:115359)
0|example.io | at Client.dispatch (/var/www/example.io/node_modules/next/dist/compiled/undici/index.js:1:115591)
0|example.io | at [dispatch] (/var/www/example.io/node_modules/next/dist/compiled/undici/index.js:2:264035)
0|example.io | at Pool.dispatch (/var/www/example.io/node_modules/next/dist/compiled/undici/index.js:1:115591)
0|example.io | at [dispatch] (/var/www/example.io/node_modules/next/dist/compiled/undici/index.js:1:29874)
0|example.io | at Agent.Intercept (/var/www/example.io/node_modules/next/dist/compiled/undici/index.js:2:93153) {
0|example.io | code: 'UND_ERR_INVALID_ARG'
0|example.io | }
0|example.io | }