This post (ECONNRESET every 2 to 10 minutes) was recently locked due to inactivity, but I wanted to bump it up because I’m seeing this error, as well, at about the same frequency. I’ll run
expo start, send the app to my simulator or device, and inevitably, within a few minutes, I’ll get this error and have to stop and restart Expo. It’s happened on several different apps, SDK 31 and 32, and a reboot of my Mac does not cure the issue.
The only caveat I’ll add is that sometimes I go without this error happening for a few days before it flares up again. Not entirely sure, but I think when it’s not happening, it has generally started up when I stop just developing on my main project and switch over temporarily to something else (e.g., a burner project to demo an issue or something) and then switch back.
I thought I saw somewhere on Google that this is a pretty generic Node error and may have something to do with some other app trying to use the 1900x ports that Expo uses. I have no idea what would be using that on my system besides Expo, however.
Any ideas on how to troubleshoot this? Thank you!
Oh, and the original post:
Me and my colleague (we are not on the same network) have the same issues since today. Every 2 to 10 minutes, we have this error
[12:30:57] events.js:173 [12:30:57] throw er; // Unhandled 'error' event [12:30:57] ^ [12:30:57] [12:30:57] Error: read ECONNRESET [12:30:57] at TCP.onStreamRead (internal/stream_base_commons.js:162:27) [12:30:57] Emitted 'error' event at: [12:30:57] at emitErrorNT (internal/streams/destroy.js:82:8) [12:30:57] at emitErrorAndCloseNT (internal/streams/destroy.js:50:3) [12:30:57] at processTicksAndRejections (internal/process/next_tick.js:76:17)
We have this error while doing nothing, it just happens randomly. I have developped with expo the last 5 months and already encounter this error but maybe twice a day. I typed Ctrl+C and expo start again. But now, it happens too often and it is a real problem.
Can you tell me if this problems comes from our config or from Expo itself ?