The server used a transfer encoding that curl did not recognise.
The document being inserted into a sharded collection does not contain the shard key.