添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
爱旅游的红茶  ·  python ...·  4 月前    · 
完美的莴苣  ·  Enforce HTTPS in ...·  10 月前    · 
很酷的莴苣  ·  Bonita API | Bonita ...·  11 月前    · 

My company has a build server that uses Artifactory, and we have been attempting to set this up for the Bryntum packages.

Artifactory is able to retrieve the package.json, but after reading the package.json, it tries to pull the tar and it hits

"errors" : [ { "status" : 404, "message" : "Unauthorized"

I have set "Bypass Head Request" and it is still the same result.
The file is confirmed to exist in the remote NPM repository.

Artifactory only had this below one line in the log

artifactory-request.log:2021-05-12T06:44:34.765Z|4a809027853c5131|10.72.243.230|admin|GET|/api/npm/npm_bryntum/@bryntum/scheduler/-/scheduler-4.1.2.tgz|404|-1|0|2288|Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36

Is there any further way to troubleshoot this?

Currently we didn't test if Artifactory can work with our private repo.
This is the issue to check it:
https://github.com/bryntum/support/issues/2864

We have this https://www.bryntum.com/docs/scheduler/#guides/npm-repository.md guide for repo authentication with npm client.
Try to use it steps from the quide on the machine with Artifactory installed.
I hope it may use npm auth token from .npmrc file.

You may also ask Artifactory support how to use repositories with authentication.

Please share info here if you were able to solve it yourself.

I think you should download libs from customerzone and then add custom packages to artifactory manually.
Then you wouldn't need to authorize with bryntum npm

scheduler-lib and grid-lib can be found in node_modules/@bryntum folder after package installation.
Use npm pack to tgzip them or npm publish to publish to your server.

We've updated server to support username/password auth for Artifactory.
Tokens are yet not supported due to some issues from Artifactory side.

Could you please check if this instruction valid for serving packages.
These docs will be available online after update.
You might know of this already but this is here for someone who may search for the solution.

To use Bryntum NPM registry as a remote repository please follow this instruction.

Add Bryntum registry as a remote repository

In Artifactory admin console navigate to Administration - Repositories and click Add repositories - Remote
repository
.

Check Remote Repositories docs from Artifactory.

Configure repository with:

Parameter Value
Package Type npm
Repository Key bryntum (or any other name you prefer)
URL https://npm.bryntum.com
Username Username for Bryntum repository authentication
Password Password for Bryntum repository authentication

Setup credentials for @bryntum package access

After creating remote repository click on wrench icon (Set Me Up) in the line with the repository to get credentials for
accessing repository.

Create .npmrc file in the project's folder and add credentials there for @bryntum scope packages:
For example if you use JFrog Platform for hosting your Artifactory registry (e.g. yourregistry.jfrog.io ) for
Artifactory with the user name [email protected] than you will have similar config:

@bryntum:registry=https://yourregistry.jfrog.io/artifactory/api/npm/bryntum/
//yourregistry.jfrog.io/artifactory/api/npm/bryntum/:_password=<BASE64_PASSWORD>
//yourregistry.jfrog.io/artifactory/api/npm/bryntum/:[email protected]
//yourregistry.jfrog.io/artifactory/api/npm/bryntum/:[email protected]
//yourregistry.jfrog.io/artifactory/api/npm/bryntum/:always-auth=true

<BASE64_PASSWORD> will be generated for you in Artifactory console if you enter your credentials there.

After these actions you will be able to install @bryntum packages with your Artifactory login from .npmrc file.

Later you may add bryntum Artifactory remote repository to any virtual repository to have access to several
repositories with the same Artifactory credentials.

Check Virtual Repositories docs from Artifactory.

Note Artifactory may serve cached packages so it would be better if you recreate remote repository and may be with different name.

Please let us know if this helps.