-
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
mdapi deploy report timeout error for in progress deployments #1612
Comments
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. |
Hello, is this happen frequently, can it be attributed to network issues ? |
Hi, no, it is happening always.. and the force:mdapi:legacy:deploy:report is working always |
has the deployment completed when you run If yes, what happens if you put it to a larger number than 1, like (--wait 10)? Does it still fail? |
If the deploy is in progress I get this error, even with --wait 10. If the deploy is completed it is working fine. |
one more question: does the same happen if you use |
This issue has been linked to a new work item: W-11431588 |
I don't know, we don't use that command. |
it's good, we'll fix them both to handle this timeout thing |
@t-zakar - note that by providing Regardless, it doesn't match the behavior of the legacy command so it'll be fixed. |
I am also facing the same issue and i am using the version sfdx-cli/7.160.0 |
@mshanemc Could you please confirm if this is fixed in July 28 th rc release |
@RohitGagan16 it is not is the 7/28 release. |
I have just tried the version 7.162.0, it is working fine, thanks. |
Summary
Since the sfdx v7.150.0, the sfdx force:mdapi:deploy:report --wait 1 command are failing with an error message when I use to query status of an in progress deployment.
'MetadataTransfer:Metadata API request failed: The client has timed out.'
The sfdx force:mdapi:legacy:deploy:report command is still working but it is deprecated and will be removed.
Steps To Reproduce:
$deployJob = sfdx force:mdapi:deploy --deploydir ./deploydir --ignorewarnings -w 0 --testlevel RunLocalTests -u $deployUser --json | ConvertFrom-Json
$report = sfdx force:mdapi:deploy:report -i $deployJobId --wait 1 -u $deployUser --json 2>&1 | ConvertFrom-Json
(We are using this from Azure pipeline)
Expected result
status in json format
Actual result
MetadataTransfer:Metadata API request failed: The client has timed out.
System Information
PS > sfdx version --verbose --json
{
"cliVersion": "sfdx-cli/7.158.1",
"architecture": "win32-x64",
"nodeVersion": "node-v16.15.1",
"pluginVersions": [
"@oclif/plugin-autocomplete 0.3.0 (core)",
"@oclif/plugin-commands 1.3.0 (core)",
"@oclif/plugin-help 3.3.1 (core)",
"@oclif/plugin-not-found 1.2.6 (core)",
"@oclif/plugin-plugins 1.10.11 (core)",
"@oclif/plugin-update 1.5.0 (core)",
"@oclif/plugin-warn-if-update-available 1.7.3 (core)",
"@oclif/plugin-which 1.0.4 (core)",
"@salesforce/sfdx-plugin-lwc-test 1.0.0 (core)",
"alias 2.1.0 (core)",
"apex 0.13.0 (core)",
"auth 2.2.2 (core)",
"community 2.0.0 (core)",
"config 1.4.12 (core)",
"custom-metadata 2.0.0 (core)",
"data 2.0.4 (core)",
"generator 2.0.2 (core)",
"info 2.0.1 (core)",
"limits 2.0.1 (core)",
"org 2.0.1 (core)",
"salesforce-alm 54.6.2 (core)",
"schema 2.1.1 (core)",
"sfdx-cli 7.158.1 (core)",
"sfdx-git-delta 5.3.0",
"signups 1.2.0 (core)",
"source 2.0.3 (core)",
"telemetry 2.0.0 (core)",
"templates 55.0.0 (core)",
"trust 2.0.1 (core)",
"user 2.1.0 (core)"
],
"osVersion": "Windows_NT 10.0.19044"
}
Additional information
But it does not matter from where you start the deploy, when you use the 'sfdx force:mdapi:deploy:report -i $deployJobId --wait 1 -u $deployUser --json' on a deploy in progress, it returns 'MetadataTransfer:Metadata API request failed: The client has timed out.' error.
When you use this on a deployment is already finished or cancelled, it is working as expected.
Before the sfdx version 7.150.0 it was working, and the force:mdapi:legacy:deploy:report command still working.
Please fix it before removing the force:mdapi:legacy:deploy:report command.
The text was updated successfully, but these errors were encountered: