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
525 stars 223 forks source link

401 bad credentials error #1634

Open Vishnupriya2407 opened 2 years ago

Vishnupriya2407 commented 2 years ago

I am trying to setup on-demand binary scanning using xray for my set of packages. While trying to run jf audit I am receiving the below error jf audit 11:07:47 [🔵Info] Log path: /root/.jfrog/logs/jfrog-cli.2022-08-03.11-07-47.18563.log 11:07:48 [🚨Error] Server response: 401 { "errors": [ { "status": 401, "message": "Bad credentials" } ] }

Could someone help in resolving this.

talarian1 commented 2 years ago

Hi @Vishnupriya2407, Did you configure your JFrog CLI server using an access token? If not could you please try it and inform us if it solved the problem? (In order to use the newly configured server you may use the --server-id flag to the audit command)