Salesforce deployment using sf command in Github workflow fails with error message : The user aborted a request.
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
调研方向
首先运行报告中显示的 GitHub workflow 步骤,观察 22 分钟身份验证延迟期间 sf org login jwt 和 sf project deploy start 的输出。完成的标准是识别并解决间歇性错误 The user aborted a request,使部署能够可靠地启动。
由索引模型根据 Issue 内容生成。
描述
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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
forcedotcom/cli 的其他 Issue
-
investigating validated
难度 2/5 1-3 小时 新手友好度 72/100
forcedotcom/cli#3657 · 2 条评论 ·
-
`sf agent preview` fails with `AgentApiNotFound` against staging (aws-stage1) orgs — `stage.api.salesforce.com` missing from endpoint fallback可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭area:afdx owned by another team
难度 2/5 1-3 小时 新手友好度 76/100
forcedotcom/cli#3645 · 2 条评论 ·
-
bug investigating validated
难度 2/5 1-3 小时 新手友好度 76/100
forcedotcom/cli#3644 · 6 条评论 ·
-
sf agent mcp asset replace --assets null throws raw TypeError instead of InvalidShape可能已有人在做 @konkonrong-lgtm 于 54 天前认领。 未关闭area:afdx bug investigating owned by another team validated
难度 2/5 1-3 小时 新手友好度 78/100
forcedotcom/cli#3625 · 4 条评论 ·
-
area:afdx bug owned by another team
难度 2/5 1-3 小时 新手友好度 78/100
forcedotcom/cli#3608 · 2 条评论 ·
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
influxdata/helm-charts#856 ·
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 69/100
postmanlabs/newman#3388 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
coollabsio/coolify#12094 · 1 条评论 ·
维护者通常 1 天内回复
-
[quality] e2e coverage failure reports say 'run null; status unknown' for every error raised after the manifest is read可能已有人在做 @hivecommons-hive 今天认领。 未关闭agent/quality hive/covered-by-pr hive/hosted-available-lke648397-260827-5n31 quality testing
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
agentic-workflows untriaged
难度 1/5 1 小时以内 新手友好度 65/100
维护者通常 1 天内回复