Salesforce deployment using sf command in Github workflow fails with error message : The user aborted a request.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
Research direction
Start by running the GitHub workflow steps shown in the report, observing both sf org login jwt and sf project deploy start output around the 22-minute authentication delay. Done means identifying and resolving the intermittent The user aborted a request failure so the deployment starts reliably.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- No language data
- Stars
- 571
- Forks
- 80
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from forcedotcom/cli
-
investigating validated
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
forcedotcom/cli#3657 · 2 comments ·
-
`sf agent preview` fails with `AgentApiNotFound` against staging (aws-stage1) orgs — `stage.api.salesforce.com` missing from endpoint fallbackPossibly taken A pull request linked to this issue is open or already merged. Openarea:afdx owned by another team
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
forcedotcom/cli#3645 · 2 comments ·
-
bug investigating validated
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
forcedotcom/cli#3644 · 6 comments ·
-
sf agent mcp asset replace --assets null throws raw TypeError instead of InvalidShapePossibly taken @konkonrong-lgtm claimed this 54 days ago. Openarea:afdx bug investigating owned by another team validated
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
forcedotcom/cli#3625 · 4 comments ·
-
area:afdx bug owned by another team
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
forcedotcom/cli#3608 · 2 comments ·
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
influxdata/helm-charts#856 ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
postmanlabs/newman#3388 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
coollabsio/coolify#12094 · 1 comment ·
Maintainers usually reply within 1 day
-
[quality] e2e coverage failure reports say 'run null; status unknown' for every error raised after the manifest is readPossibly taken @hivecommons-hive claimed this today. Openagent/quality hive/covered-by-pr hive/hosted-available-lke648397-260827-5n31 quality testing
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cncf/endusers#1069 · 1 comment ·
Maintainers usually reply within 1 day
-
agentic-workflows untriaged
Difficulty 1/5 Under an hour Newbie friendliness 65/100
Maintainers usually reply within 1 day