api/search/aql error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

api/search/aql error

when ever I run the command i'm seeing the below error. Somebody please let me how to fix the problem.

$ curl -u uname -X GET -k https://servern.com/artifactory/api/search/aql -d "items.find({"repo":"war"})"
Enter host password for user 'uname':
<title>404 Not Found</title>

Not Found

<p>The requested URL /artifactory/api/search/aql was not found on this server.</p>
<address>Apache/2.2.31 (Amazon) Server at server.com Port 443</address>


WARNING: A servlet request, to the URI https://server.com/artifactory/api/search/aql, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.
2016-04-01 17:24:20,871 [http-bio-8443-exec-1588] [ERROR] (o.a.r.r.a.AqlResource:59) - Couldn't find the query neither in the request URL and the attached file