This has been a tough one to hunt down and figure out but the situation we are having is that we have multiple buckets and one of the buckets has a view design document on it. We've come to the conclusion that if you have a single cluster connection with multiple buckets you may have problems running ViewQuery or even UpsertDesignDocument.
Step to recreate
Create bucket A
Create bucket B
Add View to bucket
Run View query against bucket A
|For Gerrit Dashboard: GOCBC-1022
|GOCBC-1022: Route view queries to agents not agent group