Open SarveshSprk opened 1 week 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.
I, too, suddenly had a seemingly related issue today when attempting to retrieve a Custom Metadata Type that was newly created via UI in a sandbox and which did not yet exist in my local project.
sf project retrieve start --metadata CustomObject:New_CMDT__mdt
>> Warning: @salesforce/cli update available from 2.34.7 to 2.46.6
Retrieving v59.0 metadata from name@example.com.sandbox using the v61.0 SOAP API
Preparing retrieve request... | Pending
NOTE: Spinner between "request..." and "Pending" was spinning the entire time
After an estimated 60-90 seconds, pressed Ctrl + C
in terminal to abort
Preparing retrieve request... done
C:\Programs Portable\node-v20.10.0-win-x64\node_modules\@salesforce\cli\node_modules\@olif\core\lib\errors\index.js:20
throw new exit_1.ExitError(code);
^
ExitError: EEXIT: 130
at RetrieveMetadata.exit (C:\Programs Portable\node-v20.10.0-winx64\node-modules\@salesfore\cli\node_modules\@oclif\core\lib\command.js:180:16)
at process.<anonyous> (file:///C:/Programs%20Portable/node-v20.10.0-winx64/node_modules/@salesforce/cli/node_modules/@salesforce/sf-plugins-core/lib/sfCommand.js:262:22)
at process.emit (node:events:526:35) {
code: 'EEXIT',
oclif: { exit: 130 },
skipOclifErrorHandling: undefined,
suggestions: undefined
}
Node.js v20.10.0
Salesforce Extension Version in VS Code: 61.1.2 (updated yesterday, 20 June 2024) Salesforce CLI Version: @salesforce/cli/2.34.7 win32-x64 node-v20.10.0 OS and version: Windoze x64 10.0.19045 VS Code version: 1.88.1 Most recent version of the extensions where this was working: Unknown -- I do not know what version I was on before updating yesterday
Hi @SarveshZap, Can we get some info about your org shape? For example, number of Apex classes, number of LWC components, number of custom objects, etc. Can we also get the org id of your sandbox and the org id of the production org that created the sandbox?
@RCMoonpie looks like you are running retrieve with cli command and not with VS Code extension. If the issue is with cli, please report it on https://github.com/forcedotcom/cli
This issue has not received a response in 3 days. It will auto-close in 2 days unless a response is posted.
Hi @SarveshZap, Can we get some info about your org shape? For example, number of Apex classes, number of LWC components, number of custom objects, etc. Can we also get the org id of your sandbox and the org id of the production org that created the sandbox?
Hello @daphne-sfdc, I am not sure if I can give you org id of sandboxes. Though the org has many components including number of custom objects, apex classes and LWC. The applications is customized on higher side. It used to take few seconds without single occurrence of delay before last two weeks.
We tried to reach out salesforce support and got this article in response which has no ETA or workaround :( https://issues.salesforce.com/issue/a028c00000yGOhWAAW/intermittent-long-wait-time-for-metadata-retrieval-using-mdapisfdc-cli-post-migrating-to-hyperforce
Hello @SarveshZap, In order to investigate the logs for your issue on our systems, we need the org id of your sandbox. If you would prefer not to send us the org id on a public forum, please email it to us at svcideebot@salesforce.com.
Hello @SarveshZap, In order to investigate the logs for your issue on our systems, we need the org id of your sandbox. If you would prefer not to send us the org id on a public forum, please email it to us at svcideebot@salesforce.com.
@daphne-sfdc Thanks for sharing email id, but it seems this email id is invalid: svcideebot@salesforce.com Could you please check again and confirm?
@SarveshSprk Sorry for the typo - it's svc_idee_bot@salesforce.com.
@SarveshSprk Sorry for the typo - it's svc_idee_bot@salesforce.com.
@daphne-sfdc Sent an email to that address few mins ago. Kindly check.
@SarveshSprk Yes I received the email. Thank you.
Summary
VSCode retrieve or diff time varies a lot and mostly on the longer side even leading to timeout in Sandbox.
Steps To Reproduce:
Expected result
Retrieve or Diff function to execute within few seconds.
Actual result
Most of the time it time outs, and sometimes it takes 6-7 mins.
Salesforce Extension Version in VS Code: 61.1.2
Salesforce CLI Version: 2.45.6
OS and version: Windows 11 Enterprise 64 bit 10.0.22621
VS Code version: 1.90.2
Most recent version of the extensions where this was working: Not sure, the issue is happening from two weeks.