Hi @mostain there isn’t actually a way to access these errors at the moment. The issue is that the query service is responding with a status code 200 and a results field so the SDK processes it thinking that there are no errors. I’ve raised https://issues.couchbase.com/browse/GOCBC-925 to figure out a way to expose any errors returned alongside results.
@chvck thank you for your answer. i think gosdk response should be identical to query workbench output/response. then developer have prior knowledge what query going to response. this will be much more easier to work with golangsdk, i don’t like current sdk so i am writing my own simple sdk which can perform couch-base query job done.
@chvck query service return with a status code 200 does not mean query is successful. see my above screenshot my query return a 200 response code but still it is failed because of duplicate entry, so without reading error number or message how any one get determination whats going on under the hood?
@mostain as above, unfortunately in this case that you are seeing you cannot get at the error. As a possible workaround until this is addressed you could try using the key value API which would definitely return the error to you.