I get the same thing following the REST API to a T to create a new view. Even though the documentation says to use an attachment. My guess is the documentation is wrong.
Here is an example of my restful call that fails
curl -X PUT -H ‘Content-Type: application/json’ http://user:password@localhost:8092/bucket/_design/name/newView -d @newView.ddoc
And the response:
{“error”:“bad_request”,“reason”:“attachments not supported in Couchbase”}
I’ve found a lot of the REST API documentation to be completely inaccurate or just doesn’t work, which makes it rather difficult to extend and incorporate couchbase into any environment.