You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux khteh-p15v-3i 5.19.0-29-generic #30-Ubuntu SMP PREEMPT_DYNAMIC Wed Jan 4 12:14:09 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
constapp=next({ dev,dir: __dirname})app.prepare().then(()=>{// express setupconstexpressApp=express()expressApp.use(express.json())expressApp.use(express.urlencoded({extended: false}))expressApp.use(cookieParser())expressApp.use(express.static(path.join(__dirname,'public')))//expressApp.use(helmet()) adding set of security middlewares. This breaks!expressApp.use(cors())// enable all CORS requestexpressApp.set('port',port)expressApp.use(compression({filter: shouldCompress}))constserver=http2.createSecureServer({key: fs.readFileSync('server.key'),cert: fs.readFileSync('server.crt')},expressApp);})
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
No response
What do you see instead?
error - uncaughtException: TypeError: Cannot read properties of undefined (reading 'readable') at IncomingMessage._read (node:_http_incoming:214:19) at Readable.read (node:internal/streams/readable:496:12) at resume_ (node:internal/streams/readable:999:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21)error - uncaughtException: TypeError: Cannot convert undefined or null to object at ServerResponse.removeHeader (node:_http_outgoing:813:30) at Immediate.write (/usr/src/myapp/node_modules/finalhandler/index.js:282:9) at process.processImmediate (node:internal/timers:477:21)error - uncaughtException: TypeError: Cannot read properties of undefined (reading 'readable') at IncomingMessage._read (node:_http_incoming:214:19) at Readable.read (node:internal/streams/readable:496:12) at resume_ (node:internal/streams/readable:999:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21)error - uncaughtException: TypeError: Cannot convert undefined or null to object at ServerResponse.removeHeader (node:_http_outgoing:813:30) at Immediate.write (/usr/src/myapp/node_modules/finalhandler/index.js:282:9) at process.processImmediate (node:internal/timers:477:21)error - uncaughtException: TypeError: Cannot read properties of undefined (reading 'readable') at IncomingMessage._read (node:_http_incoming:214:19) at Readable.read (node:internal/streams/readable:496:12) at resume_ (node:internal/streams/readable:999:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21)error - uncaughtException: TypeError: Cannot convert undefined or null to object at ServerResponse.removeHeader (node:_http_outgoing:813:30) at Immediate.write (/usr/src/myapp/node_modules/finalhandler/index.js:282:9) at process.processImmediate (node:internal/timers:477:21)
Additional information
No response
The text was updated successfully, but these errors were encountered:
Version
v19.6.0
Platform
Linux khteh-p15v-3i 5.19.0-29-generic #30-Ubuntu SMP PREEMPT_DYNAMIC Wed Jan 4 12:14:09 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
No response
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: