[Solved] Bizzarre: ECONNRESET after 30 seconds, only on reload

I am getting these errors in the cmd line logging (after yarn rw dev) after a 30 seconds hang on any page I reload

The hang happens AFTER the RW logs graphql-server GraphQL execution completed

api | 21:50:33 🐛 graphql-server GraphQL execution completed: FindSheetResultQuery

After these errors the page loads…

Otherwise, on normal navigation the app performs normally

Note: the problem does NOT show up during a HMR after a code change

api | 21:31:03 🌲 incoming request GET xxx /auth?method=getToken
api | 21:31:03 🌲 request completed 3ms
web | <e> [webpack-dev-server] [HPM] ECONNRESET: Error: aborted
web | <e>     at connResetException (node:internal/errors:692:14)
web | <e>     at abortIncoming (node:_http_server:602:17)
web | <e>     at socketOnClose (node:_http_server:596:3)
web | <e>     at Socket.emit (node:events:539:35)
web | <e>     at Socket.emit (node:domain:475:12)
web | <e>     at TCP.<anonymous> (node:net:709:12) {
web | <e>   code: 'ECONNRESET'
web | <e> }
web | <e> [webpack-dev-server] [HPM] ECONNRESET: Error: socket hang up
web | <e>     at connResetException (node:internal/errors:692:14)
web | <e>     at Socket.socketCloseListener (node:_http_client:427:25)
web | <e>     at Socket.emit (node:events:539:35)
web | <e>     at Socket.emit (node:domain:475:12)
web | <e>     at TCP.<anonymous> (node:net:709:12) {
web | <e>   code: 'ECONNRESET'
web | <e> }

I had tried to install @mui/system – that’s what broke things

seeing Material UI - Setup in RedwoodJS

I uninstalled all @mui and brought them back in without @mui/system

things are good again

1 Like