Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#3,384 16 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
github-actions, shell
Lĩnh vực
ci-cd, cli

Hướng nghiên cứu

Bắt đầu bằng cách chạy các bước GitHub workflow được hiển thị trong báo cáo, đồng thời quan sát đầu ra của sf org login jwt và sf project deploy start xung quanh độ trễ xác thực 22 phút. Được xem là hoàn tất khi xác định và giải quyết được lỗi không liên tục The user aborted a request, để deployment khởi động một cách đáng tin cậy.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
571
Fork
80
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của forcedotcom/cli

Tất cả issue của forcedotcom/cli

Issue tương tự

Thêm issue về DevOps

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.