ember-cli
ember-cli copied to clipboard
TypeError: Cannot read properties of undefined (reading 'status')
Ever since updating from 6.3.1 to 6.4.0 I started getting this error:
TypeError: Cannot read properties of undefined (reading 'status')
at ProxyServer.<anonymous> (/home/boris/project/node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/ember-cli/lib/tasks/server/middleware/proxy-server/index.js:32:24)
at ProxyServer.emit (/home/boris/project/node_modules/.pnpm/[email protected]/node_modules/eventemitter3/index.js:202:33)
at TLSSocket.<anonymous> (/home/boris/project/node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/ember-cli/lib/tasks/server/middleware/proxy-server/index.js:54:39)
at TLSSocket.emit (node:events:519:35)
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
And the server dies. It's sporadic - I can't catch it when it happens. Didn't happen before 6.4.0. Ideas?
if check introduced here needs an extra condition it seems. Though, unsure if res being undefined is the actual bug.
Fixed in https://github.com/ember-cli/ember-cli/pull/10794.