jfrog / jfrog-cli

JFrog CLI is a client that provides a simple interface that automates access to the JFrog products.
https://www.jfrog.com/confluence/display/CLI/JFrog+CLI
Apache License 2.0
538 stars 236 forks source link

Jfrog rt dpl 400 Bad Request Error #934

Open supratim-persistent opened 3 years ago

supratim-persistent commented 3 years ago

Description Using JFrog CLI version 1.40.0 to pull an image from the Artifactory private registry and using Github actions to run the cli, while the cli set up and login is successful and even the image gets pulled and is available locally, there is error below that keeps coming and the CICD step fails. 400 Bad Request Error

Steps to reproduce Run the below steps in a Gihub actions pipeline

- name: SETUP JFROG
   uses: jfrog/setup-jfrog-cli@v1
   with:
     version: 1.39.4
   env:
    JF_ARTIFACTORY_1: ${{ secrets.ARTIFACTORY_DEPLOYER }}

- name: Docker Pull
    run: |
      jfrog rt dpl --server-id xyz <repo_name>.jfrog.io/ecs-runner-helpers:v5 https://<source_repository>

No 400 Bad Request Error Ideally after the image gets pulled through jfrog rt dpl, no 400 bad request error should come.

Versions

Additional Error Details from pipeline

[Info] Getting repository 'https://<repo_name>/artifactory/abc-local' details ...
Error:  Artifactory response: 400 Bad Request
{
  "errors": [
    {
      "status": 400,
      "message": "Bad Request"
    }
  ]
}
Error: Process completed with exit code 1.
supratim-persistent commented 3 years ago

Could some one please take a look at this?

supratim-persistent commented 3 years ago

Anyone with any inputs on this one?

eyalbe4 commented 3 years ago

@supratim-persistent - Thanks foe reporting this issue and my apologies for the late response. Will you be able to try this again with the latest release of JFrog CLI? We've implement some fixes and improvements which may resolve this issue. If the issue is not resolved, can you please include the Artifactory version you're using and tell us if the error you're receiving is exactly the same as you mentioned above?