It appears the N1QLQuery sends requests to http://${host}:8091/query?q=${N1QL query} (as a GET request). However, the request should be as follows:
POST http://${host}:8091/_p/query/query/service HTTP/1.1
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept: application/json, text/plain, */*'
statement=${N1QL query}
It appears the
N1QLQuerysends requests tohttp://${host}:8091/query?q=${N1QL query}(as aGETrequest). However, the request should be as follows: