cli icon indicating copy to clipboard operation
cli copied to clipboard

Issue with project deploy start in CI pipeline

Open marcoalmodova opened this issue 8 months ago • 21 comments

Note Before you submit your issue, make sure that:

  • You're using the latest version of Salesforce CLI.
  • You've searched both open and closed issues for related posts.
  • You've used the doctor command to diagnose common issues.
  • You understand that GitHub Issues don't adhere to any agreement or SLA.
    • If you require immediate assistance, use official channels such as Salesforce Customer Support.

Summary

When running project deploy start through CI, one of the following error happens:

  1. Error (1): Metadata API request failed: An internal error caused this command to fail. isomorphic-git error:

SHA check failed! Expected 6a8101cdb9fb777eca3646dc9ac5b27180551286, computed e50f26defea06e7dc1ce70441600fcc6fb1ac392

  1. Metadata API request failed: Cannot create property 'caller' on string 'incorrect header check'

It happened with the current cli version and I even tried to update to the rc version, but no success.

Steps To Reproduce

Run a basic CI pipeline and try to deploy start with the existing metadata. I also tried with a pretty empty project (two classes only).

IMPORTANT Provide a repository that's configured to reproduce the issue. If you are unable to provide a repo, please explain why not. The more info we have from the start, the faster we can resolve your issue. We may close your issue if you don't include proper instructions.

  • Generate a project with sf project generate or fork dreamhouse-lwc.
  • Provide detailed step-by-step instructions on how to reproduce the issue.

Expected result

The deployment happening successfully.

Actual result

The errors described in the summary section happen.

System Information

{
  "architecture": "linux-x64",
  "cliVersion": "@salesforce/cli/2.45.6",
  "nodeVersion": "node-v22.3.0",
  "osVersion": "Linux 5.15.0-1057-aws",
  "rootPath": "/usr/local/lib/node_modules/@salesforce/cli",
  "shell": "bash",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.1.2 (core)",
    "@oclif/plugin-commands 4.0.2 (core)",
    "@oclif/plugin-help 6.1.0 (core)",
    "@oclif/plugin-not-found 3.2.2 (core)",
    "@oclif/plugin-plugins 5.2.2 (core)",
    "@oclif/plugin-search 1.1.1 (core)",
    "@oclif/plugin-update 4.3.3 (core)",
    "@oclif/plugin-version 2.2.2 (core)",
    "@oclif/plugin-warn-if-update-available 3.1.4 (core)",
    "@oclif/plugin-which 3.2.1 (core)",
    "@salesforce/cli 2.45.6 (core)",
    "apex 3.1.14 (core)",
    "auth 3.6.17 (core)",
    "community 3.2.18 (user) published 4 days ago (Thu Jun 13 2024) (latest is 3.2.19)",
    "data 3.4.3 (core)",
    "deploy-retrieve 3.8.4 (core)",
    "info 3.3.4 (core)",
    "limits 3.3.10 (core)",
    "marketplace 1.2.10 (core)",
    "org 4.1.19 (core)",
    "packaging 2.4.6 (user) published 10 days ago (Thu Jun 06 2024)",
    "schema 3.3.10 (core)",
    "settings 2.3.0 (core)",
    "sobject 1.4.8 (core)",
    "source 3.3.21 (core)",
    "telemetry 3.3.12 (core)",
    "templates 56.2.9 (core)",
    "trust 3.7.4 (core)",
    "user 3.5.11 (core)",
    "sfdx-git-delta 5.40.2 (user) published 3 days ago (Thu Jun 13 2024)"
  ]
}

Additional information

marcoalmodova avatar Jun 17 '24 07:06 marcoalmodova