N1QL query error: [1065] Unrecognized parameter in request: consistency

Starting to play with N1QL in order to convert some view queries in our next release, but I haven’t gotten far:

Server: 4.1.0-4908 Enterprise Edition (build-4908)

SDK: gocb.v1

Error: N1QL query error: [1065] Unrecognized parameter in request: consistency

I’m trying to set myQuery.Consistency(gocb.RequestPlus)

If I comment that out I no longer get the error, but I get no results when I should be.

Looks like an issue with the go client. cross posting to the gosdk category.

any update to this issue? I got it too

The parameter should be scan_consistency, not consistency. Maybe a bug in the client SDK.