Closed Crysis2015 closed 6 months ago
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.
ECONNRESET
typically indicates that you have a connection issue. Are you able to share the debug logs (using --dev-debug
)?Something in there might help understand why the connection is closing unexpectedly.
Installed latest CLI for Windows. Installed latest version of VS Code and Salesforce extension. After this, essentially all commands are failing with ECONNRESET.
Is this only happening on the latest version? Or is there an older version where this error isn't happening?
No this started happening pretty recently since the last few days if I remember. Older versions does not seem to have the problem. This is happening from the VS Code extension commands. If I run CLI commands manually in the terminal, it does not seem to have the issue.
Hi @Crysis2015 -
Can you send us any error messages you see in the following places?
@mingxuanzhangsfdx All other areas are blank except the Developer tools console. Attached screenshot of console.
No network requests went out.
@Crysis2015 could you run this command against the org above for me and return the resulting files
sf doctor -c "sf sobject describe -s SourceMember -t --target-org [username]"
@peternhale Attached all the files output. FYI , I get this error for all my regular orgs which does not have source tracking . I do not have a setup with scratch orgs so cant confirm the behavior there.
1715000564455-command-debug.log 1715000564455-command-stdout.log 1715000564455-diagnosis.json
@Crysis2015 Would you try these steps to gather some additional info.
@peternhale I tried these steps, but nothing was generated in .sf or any folder. No log files at all.
@Crysis2015 the log file will be in your home directory under .sf folder
@peternhale Please find attached the log file sf-2024-05-08.log
one observation this seems like a windows problem. I was able to check on a mac and there it is working fine.
@Crysis2015 thanks for the clue and I don't see anything bad in the log file you provided. Can I assume that the mac and windows box are on the same network, or am I mistaken?
@peternhale Yup the network is not an issue as all of them are working. I checked the firewall, antivirus ,vpn check, all are fine. And I tried on different networks as well but the windows setup shows the same failure whereas the mac setup works fine.
@peternhale Just a question, is it replicable from your side?
@Crysis2015 I am unable to reproduce on windows and my Mac works too. Similar setup on network as well (VPN). Would you be willing to completely remove vscode and start from scratch on your windows machine?
Hello, this is happening to me on a Mac. No details provided other than the SFDX retrieve command has failed. I've tried reinstalling VS code, reinstalling the extensions, as well as installing older versions of CLI, but nothing lets me retrieve the metadata. Not sure if this information is useful but when I try to use an older version of the extension, I see the message "no view is registered with id: sfdx.tasks.view"
This issue has not received a response in 3 days. It will auto-close in 2 days unless a response is posted.
Summary
Installed latest CLI for Windows. Installed latest version of VS Code and Salesforce extension. After this, essentially all commands are failing with ECONNRESET. Just the org authorize command is running.
Repaired Windows, reinstalled VS Code , setup everything from fresh multiple times, setup new project for sandbox(non scratch org).
None of this solves the issue.
Steps To Reproduce
Create a project in VS Code for any sandbox org. Authorize the org. This will work. After that try deploying/retrieving.
Expected result
Deploy/retrieve should work fine.
Actual result
Deploy/retrieve failing with request to https://xxxxxx--xxxxxx.sandbox.my.salesforce.com/services/data/v59.0/tooling/sobjects/SourceMember/describe failed, reason: read ECONNRESET
Output of sfdx doctor command is also attached.
System Information
zsh , powershell , cmdAdditional information
1714678596167-diagnosis.json 1714678632578-diagnosis.json