ember-cli icon indicating copy to clipboard operation
ember-cli copied to clipboard

TypeError: Cannot read properties of undefined (reading 'status')

Open boris-petrov opened this issue 9 months ago • 1 comments

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?

boris-petrov avatar May 07 '25 13:05 boris-petrov

if check introduced here needs an extra condition it seems. Though, unsure if res being undefined is the actual bug.

bertdeblock avatar Jun 16 '25 14:06 bertdeblock

Fixed in https://github.com/ember-cli/ember-cli/pull/10794.

bertdeblock avatar Sep 09 '25 15:09 bertdeblock