Using Jfrog artifactory as cache packet repo

  Kiến thức lập trình

I’m trying to configure cargo to fetch packets from crates.io through jfrog artifactory remote.

By using the jfrog cli command:

jf atc
I’m able to get an access token.
However when trying to do a cargo build I get this response:

Caused by: failed to query replaced source registry crates-io`

Caused by:
token rejected for artifactory-remote

Caused by:
failed to get successful HTTP response from https://jfrog.myCompany/artifactory/api/cargo/crates-remote/index/config.json, got 401
body:
{
“errors” : [ {
“status” : 401,
“message” : “Authentication is required”
} ]
}`

I have tried to find documentation on how to do this, however I can’t find anythings that helps me.

I have currently done like this to specify the token:

export CARGO_REGISTRY_TOKEN="Bearer eyJ2ZXIiOiIyIiwidHlwIjo......"

I wonder, should I also provide my user name someplace?

Hope anyone can help me, thank’s a lot !

New contributor

user3307881 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT