Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Salesforce deployment using sf command in Github workflow fails with error message : The user aborted a request.

未关闭
#3,384 16 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
github-actions, shell
领域
ci-cd, cli

调研方向

首先运行报告中显示的 GitHub workflow 步骤,观察 22 分钟身份验证延迟期间 sf org login jwt 和 sf project deploy start 的输出。完成的标准是识别并解决间歇性错误 The user aborted a request,使部署能够可靠地启动。

由索引模型根据 Issue 内容生成。

描述

investigating validated

Summary
IMP This is an intermittent issue
I have a Github Workflow that deploys a branch in Github to Salesforce and during deployment it fails with error message "The user aborted a request."

Steps To Reproduce

I am using below steps this workflow:

  • name: Install Salesforce CLI
    run: |
    mkdir -p ~/sf
    wget https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-linux-x64.tar.xz
    tar xJf sf-linux-x64.tar.xz -C ~/sf --strip-components 1
    echo "$HOME/sf/bin" >> $GITHUB_PATH
    ~/sf/bin/sf --version

    - name: Authenticate to Salesforce DevelopDev Sandbox
      run: |
        echo "${{ secrets.SERVER_KEY }}" > server.key
        sf org login jwt \
          --username ${{ secrets.DEPLOYMENT_USERNAME }} \
          --jwt-key-file server.key \
          --client-id ${{ secrets.CONSUMER_KEY }} \
          --instance-url ${{ vars.INSTANCE_URL }} \
          --set-default \
          --alias DevSandbox
    
    - name: Deploy and run Apex tests (verbose, wait up to 5 hours for job to finish)
      run: |
        sf project deploy start \
          --source-dir force-app \
          --target-org DevSandbox \
          --test-level RunLocalTests \
          --ignore-conflicts \
          --ignore-warnings \
          --wait 300 \
          --verbose
    
Expected result

The deployment should initiate by deploying develop branch to salesforce sandbox.

Actual result

Authentication is successful but it takes 22 minutes to authenticate against a sandbox and then the deployment never gets initiated in Salesforce and the deployment fails with error message "The user aborted a request."
This issue is intermittent and does not happen all the times.

主要语言
没有语言数据
星标
571
派生
80
平均合并
2 天 21 小时
30 天内合并 PR
3

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

forcedotcom/cli 的其他 Issue

查看 forcedotcom/cli 的全部 Issue

相似的 Issue

更多 DevOps Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。