Here's my view in the admin console:

![enter image description here](https://i.stack.imgur.com/vh0z2.png)
Here's my code to call it via the API:

```
var query = cb.view('_design/dev_user/', 'by_name');
    console.log(query);
    query.query(function(err, results) {
        console.log(err);
        });

```

This is the output:

> 
> { \_cb: { queryhosts: null,
>  mchosts: '',
>  srvhost: null,
>  hosts: 'localhost:8091',
>  \_cb: { \_handleRestResponse: [Function] },
>  connected: false }, ddoc: '\_design/dev\_user', name: 'by\_name', q: {} }
> 
> 
> { [Error: REST error: bad\_request] code: 4104,
>  reason: 'attachments not supported in Couchbase' }
> 
> 
> 

Any idea what I'm doing wrong?