ARTIFACTORY: How to fix 'Cannot query field "evidence" on type Query' error

Products
Frog_Artifactory
Content Type
Use_Case
AuthorFullName__c
Jian Sun
articleNumber
000006666
FirstPublishedDate
2025-10-20T12:26:24Z
lastModifiedDate
2025-10-20

ARTIFACTORY: How to fix 'Cannot query field "evidence" on type Query' error

Description 

A 400 response with the message "Cannot query field evidence on type Query" may occur when attempting to retrieve evidence.
$ jf evd get --subject-repo-path j-generic-local/2.png
[Error] Failed to get evidence: server response: 400 Bad Request
{
  "errors": [
    {
      "message": "Cannot query field \"evidence\" on type \"Query\".",
      "locations": [
        {
          "line": 1,
          "column": 3
        }
      ],
      "extensions": {
        "code": "GRAPHQL_VALIDATION_FAILED"
      }
    }
  ]
}
18:15:53 [🔵Info] Trace ID for JFrog Platform logs: xx
18:15:53 [🚨Error] evidence retrieval failed: server response: 400 Bad Request

Root Cause

This occurs because the 'evidence.enabled: true' setting was not explicitly specified in the system.yaml configuration.



Resolution 


The solution is to update the <JFrog_Home>/artifactory/var/etc/system.yaml configuration and restart Artifactory.
evidence:
    enabled: true