chanti529 / repostats

This plugin utilizes the statistical metadata of the Artifacts that is implicitly generated and maintained by Artifactory. These statistics provide insights into Artifactory utilization and can help organizations to implement checks, chargeback Users/Teams, perform cleanups and analyze the consumption of resources.
Apache License 2.0
2 stars 4 forks source link

Error unsupported protocol scheme #7

Open scott-hpe opened 2 years ago

scott-hpe commented 2 years ago

Seeing an error using this plugin with jf v2.21.3 and Artifactory SaaS. Other jf commands work as expected.

[~] jf repostats size folder --repos docker-local                                                                                          
12:09:00 [Debug] Creating lock in:  /Users/srussell/.jfrog/locks/plugins
12:09:00 [Debug] Releasing lock:  /Users/srussell/.jfrog/locks/plugins/jfrog-cli.conf.lck.95097.1658160540807585000
[Debug] Searching Artifactory using AQL query:
 items.find({"$or":[{"repo":{"$match":"docker-local"}}]}).include("repo", "path", "name", "created", "modified", "modified_by", "size").sort({
            "$asc":["created"]
        }).offset(0).limit(50000)
[Debug] Sending HTTP POST request to: api/search/aql
[Error] Post "api/search/aql": unsupported protocol scheme ""
exit status 1
[~] jf --version                                                                                                                           
jf version 2.21.3
[~] jf c show                                                                                                                              
Server ID:          example
JFrog platform URL:     https://example.jfrog.io/
Artifactory URL:        https://example.jfrog.io/artifactory/
Distribution URL:       https://example.jfrog.io/distribution/
Xray URL:           https://example.jfrog.io/xray/
Mission Control URL:        https://example.jfrog.io/mc/
Pipelines URL:          https://example.jfrog.io/pipelines/
Access token:           ***
Default:            true
chanti529 commented 2 years ago

Hi @scott-hpe I have upgraded the jfrog-cli-core to the latest version including upgrading to a new major version v2. Please check this after the latest version of the plugin is installed and let me know if you still see this issue

scott-hpe commented 2 years ago

this build seems to work. FYI. I had to manually download and install it because build 1.0.1 is still be pulled when doing jf plugin install repostats