-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Metadata API request failed: isomorphic-git error: Index file is empty (.git/index) #3027
Comments
Hello @vgoyal-copado 👋 None of the versions of Shared: Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue. After updating, share the full output of |
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 have updated my sf cli version and I still get this error. This is what the response of |
hi @vgoyal-copado - in this scenario, is source-tracking required? you could disable it |
@WillieRuemmele Changing the sandbox is not an option. It's source tracked. I tried |
@vgoyal-copado - this does seem like a bug - we released some fixes around parallelism, but you're on the latest and still seeing issues. I don't see any reason why this would only be happening on sandbox retrieveals, you might be able to add a |
This issue has been linked to a new work item: W-16794627 |
Summary
We have a node script using which we are trying to kind of "take a snapshot" of the org. For this,
sf project retrieve start --target-org <sessionId> --manifest <path-to-package-xml> --wait 60 --json
to retrieve a particular member type.What we observe is: during the retrieval process, some retrievals fail with the error: Metadata API request failed: An internal error caused this command to fail. isomorphic-git error:Index file is empty (.git/index). As far as we have observed, this is happening only for sandboxes and not for regular developer edition orgs.
Steps To Reproduce
In an sfdx-repo ( the size of the repo doesn't matter, I have been trying this on an empty repo ), try to retrieve multiple metadatas in parallel from a sandbox.
Expected result
The metadata retrieval should be successful
Actual result
The metadata retrieval fails with the error: Metadata API request failed: An internal error caused this command to fail. isomorphic-git error:I ndex file is empty (.git/index)
Additional information
System Information
Terminal: bash
sf version --verbose --json gives the following response
{
"architecture": "linux-x64",
"cliVersion": "@salesforce/cli/2.52.6",
"nodeVersion": "node-v20.15.1",
"osVersion": "Linux 4.4.0",
"rootPath": "/usr/local/lib/node_modules/@salesforce/cli",
"shell": "bash",
"pluginVersions": [
"@oclif/plugin-autocomplete 3.1.9 (core)",
"@oclif/plugin-commands 4.0.9 (core)",
"@oclif/plugin-help 6.2.7 (core)",
"@oclif/plugin-not-found 3.2.13 (core)",
"@oclif/plugin-plugins 5.3.9 (core)",
"@oclif/plugin-search 1.2.4 (core)",
"@oclif/plugin-update 4.4.12 (core)",
"@oclif/plugin-version 2.2.9 (core)",
"@oclif/plugin-warn-if-update-available 3.1.10 (core)",
"@oclif/plugin-which 3.2.9 (core)",
"@salesforce/cli 2.52.6 (core)",
"apex 3.3.2 (core)",
"auth 3.6.38 (core)",
"data 3.5.8 (core)",
"deploy-retrieve 3.9.21 (core)",
"info 3.3.21 (core)",
"limits 3.3.20 (core)",
"marketplace 1.2.19 (core)",
"org 4.4.0 (core)",
"packaging 2.7.4 (core)",
"schema 3.3.21 (core)",
"settings 2.3.9 (core)",
"sobject 1.4.20 (core)",
"source 3.5.7 (core)",
"telemetry 3.6.3 (core)",
"templates 56.3.6 (core)",
"trust 3.7.15 (core)",
"user 3.5.20 (core)"
]
}
SF CLI Version: @salesforce/cli/2.52.6 linux-x64 node-v20.15.1
The text was updated successfully, but these errors were encountered: