Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jf go-publish failure wrong error code #2470

Open
chkp-roniz opened this issue Mar 11, 2024 · 2 comments
Open

jf go-publish failure wrong error code #2470

chkp-roniz opened this issue Mar 11, 2024 · 2 comments
Labels
bug Something isn't working stale An outdated issue lacking engagement

Comments

@chkp-roniz
Copy link

Describe the bug

jf cli go-publish using the same version, fail with wrong error code and message.

Current error code: 400
Expected error code: 403

Current behavior

jf cli command and error:

jf go-publish v1.0.0-alpha.1
[Info] Using go: go1.17.11
[Info] Running 'go list -mod=mod -m' in /src/repo/main/release
[Info] Publishing company.com/name/repo to go
[Warn] (Attempt 1) - Failure occurred while uploading to https://artifactory.company.com/artifactory/api/go/go/company.com/name/repo/@v/v1.0.0-alpha.1.zip;build.name=repo.main;build.number=1;build.timestamp=123;go.version=v1.0.0-alpha.1: server response: 400 Bad Request
{
  "errors" : [ {
    "status" : 400,
    "message" : "{\"error\": \"bad request\", \"reason\": \"Payload could not be retrieved from request\"}"
  } ]
}

Artifactory logs:

/opt/jfrog/artifactory/var/log/console.log: [jfrt ] [WARN ] [8e0d6f9b9819832 ] [.r.ArtifactoryResponseBase:144] [-nio-8081-exec-81267] - Sending HTTP error code 403: Not enough permissions to delete/overwrite artifact 'go-local:company.com/name/repo/@v/v1.0.0-alpha.1.zip' (user: 'xxx' needs DELETE permission).

Reproduction steps

No response

Expected behavior

No response

JFrog CLI version

2.53.1

Operating system type and version

Linux Red Hat 7

JFrog Artifactory version

No response

JFrog Xray version

No response

@chkp-roniz chkp-roniz added the bug Something isn't working label Mar 11, 2024
Copy link
Contributor

This issue has been marked as stale due to 6 months of inactivity. As part of our effort to address every issue properly, please feel free to remove the stale label or keep this issue active by leaving a comment. Otherwise, it will be closed in 7 days

@github-actions github-actions bot added the stale An outdated issue lacking engagement label Feb 28, 2025
@rrmangum
Copy link

rrmangum commented Mar 11, 2025

I have the same issue using version: 2.73.0 of jf cli.

I am on artifactory version:

JFrog Platform
EnterpriseX license 7.98.13 rev 79813900

23:50:02 [Warn] (Attempt 1) - Failure occurred while uploading to https://artifactory.MY_HOST.com/MY_PKG.zip;build.name=MY_BUILD;build.number=190;build.timestamp=1741650488527;go.version=MY_PACKAGE_VERSION: 400
{
"errors" : [ {
"status" : 400,
"message" : "{"error": "bad request", "reason": "Payload could not be retrieved from request"}"
} ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale An outdated issue lacking engagement
Projects
None yet
Development

No branches or pull requests

2 participants