Created
January 31, 2024 05:42
-
-
Save hoangddt/97e407a91a952147891c5c3da7e8e859 to your computer and use it in GitHub Desktop.
UND_ERR_INVALID_ARG log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So, remove
proxy_set_header Connection 'Upgrade';
in nginx did the trick:Ref: