Replies: 3 comments 2 replies
-
|
@omerman Where are you trying to deploy this? Was not able to replicate this on Vercel. |
Beta Was this translation helpful? Give feedback.
-
|
@samcx My app is deployed to an IIS server, using reverse proxy. snippet from web.release config: |
Beta Was this translation helpful? Give feedback.
-
|
@samcx The Accept header causing this is: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/apng,/;q=0.8;application/signed-exchange;v=b3 Please let me know if you need any further information to reproduce this issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Link to the code that reproduces this issue
https://github.com/omerman/next13-unmounts-reproduction/
To Reproduce
Not sure.
Maybe related to #22329
Current vs. Expected behavior
[15.09.2024 18:44.03.821] [ERROR] Error: Invalid accept header
at s.parse ([path_to_next_modules]/@hapi/accept/index.js:1:3083)
at t.selections ([path_to_next_modules]/@hapi/accept/index.js:1:2564)
at t.selection ([path_to_next_modules]/@hapi/accept/index.js:1:2425)
at t.mediaType ([path_to_next_modules]/@hapi/accept/index.js:1:2085)
at getSupportedMimeType ([path_to_next_modules]/image-optimizer.js:179:44)
at ImageOptimizerCache.validateParams ([path_to_next_modules]/image-optimizer.js:436:26)
at NextNodeServer.handleNextImageRequest ([path_to_next_modules]/next-server.js:167:58)
at Server.normalizeAndAttachMetadata ([path_to_next_modules]/base-server.js:292:39)
at NextNodeServer.handleRequestImpl ([path_to_next_modules]/base-server.js:848:39)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async invokeRender ([path_to_next_modules]/router-server.js:183:21)
at async handleRequest ([path_to_next_modules]/router-server.js:360:24)
at async requestHandlerImpl ([path_to_next_modules]/router-server.js:384:13)
at async Server.requestListener ([path_to_next_modules]/start-server.js:142:13) {
data: null,
isBoom: true,
isServer: false,
output: {
statusCode: 400,
payload: {
statusCode: 400,
error: 'Bad Request',
message: 'Invalid accept header'
},
headers: {}
}
}
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
Other (Deployed)
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions