Problem while creating design documentation


curl -X POST -H “Content-Type: application/json” http://Administrator:123456@ -d @byfield.ddoc

this was my error

Warning: Couldn’t read data from file “byfield.ddoc”, this makes an empty
Warning: POST.

please help me to solve this ??

@boby, {“error”:“not_found”,“reason”:“missing”}
This error is means bucket is not present. Also for creating a view it should be PUT request not POST. Post is for internal settings.
And also looking at your warning it looks like byfield.ddoc is empty or not readable. The file should contain view definition
{“views”:{“test”:{“map”:“function (doc, meta) {\n {\n emit(, meta.rev);\n } \n}”}}}

1 Like