Invalid JSON Error on Design Documents PUT command #503

Ninerian opened this Issue Feb 23, 2014 · 1 comment


None yet
2 participants

While working through the official guide I discovered an error on the design document part.

After executing the command:

curl -X PUT -data-binary @mydesign.json

i got the error:

curl: (6) Could not resolve host: mydesign.json

the debuglog told me

Invalid JSON: {{error,
                                      "lexical error: invalid char in json text.\n"}},

After some searching on google i discovered the solution on stackoverflow:

by changing the command to

curl -X PUT -d @mydesign.json

i was able to go further in the guide.

nkux commented Oct 20, 2016


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment