Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

[A Basic Design Document] curl command for uploading design file is wrong. #446

Spredzy opened this Issue Nov 25, 2011 · 2 comments


None yet
3 participants

Spredzy commented Nov 25, 2011

When executing the command made in the book I get this error


curl -vX PUT -data-binarymydesign.json


{"error":"bad_request","reason":"invalid UTF-8 JSON: <<"ata-binarytoto.json">>"}

After some research the exact query (at least for my os Mac OS X 10.6) would look like this


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



Note the double dash (--) in front of data-binary, followed by a space and then an @ to define the file name.

Yanis Guenane

w0lfe commented Jun 20, 2012

Also working form OSX10.6 and have the same issue. The fixed command works for me. Thanks!


sghill commented Mar 3, 2013

I think this, and open issue #448, can be closed as a duplicate of resolved issues #415, #422, #428.

The error was fixed in the draft version with commit b3610d

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