Read ECONNRESET error during source retrieval.
Question
I'm attempting to fetch around 800k records for an sObject, but I encounter an error, and the command remains in progress without completing any actions. What could be the issue?

Answer
The ECONNRESET error typically indicates one of three issues:
- Your internet connection was suddenly interrupted.
- The remote server has stopped responding, possibly due to maintenance in the Salesforce environment.
- The remote call timed out due to the large data size or a slow internet connection.
The query polling timeout is controlled by
pollingQueryTimeoutMs(default 240000 ms).
To mitigate this:
- reduce the fetched scope using
WHERE/segmented runs, - consider increasing
pollingQueryTimeoutMsinexport.jsonfor large/busy orgs.