Description
When I issue this command on my machine:
/opt/couchbase/bin/cbq -e 172.23.106.24:8093 -u 'curl_no_insert' -p 'password' -q -s="select curl('http://172.23.106.24:8093/query/service', {'data':'statement=insert into default (key UUID(), value result) select result from curl(\"https://jira.atlassian.com/rest/api/latest/issue/JRA-9\") result returning meta().id, * '})"
There are two error messages that can be returned:
"User does not have credentials to run queries using the CURL() function. Add role query_external_access to allow the query to run."
OR
"User does not have credentials to run INSERT queries on the default bucket. Add role query_insert on default to allow the query to run."
The first error message is returned more frequently, but the second one does appear from time to time. It is also worth noting the user that I passed in doesn't even exist.